bug修复 #1

Merged
wsy182 merged 22 commits from dev into master 2024-05-11 17:06:50 +08:00
Showing only changes of commit 69800cd27b - Show all commits

View File

@@ -14,6 +14,7 @@ public class QyWeChatURLService {
private final QyWeChatURLMapper qyWeChatURLMapper; private final QyWeChatURLMapper qyWeChatURLMapper;
private final UserConfig userConfig; private final UserConfig userConfig;
private String sendTextCardMessageUrl; private String sendTextCardMessageUrl;
private String qyWechatGetTokenUrl;
public QyWeChatURLService(QyWeChatURLMapper qyWeChatURLMapper, UserConfig userConfig) { public QyWeChatURLService(QyWeChatURLMapper qyWeChatURLMapper, UserConfig userConfig) {
this.qyWeChatURLMapper = qyWeChatURLMapper; this.qyWeChatURLMapper = qyWeChatURLMapper;
@@ -31,11 +32,13 @@ public class QyWeChatURLService {
QueryWrapper<QyWeChatURL> wrapper = new QueryWrapper<>(); QueryWrapper<QyWeChatURL> wrapper = new QueryWrapper<>();
wrapper.eq("phone_number", phoneNumberToSearch); wrapper.eq("phone_number", phoneNumberToSearch);
QyWeChatURL result = qyWeChatURLMapper.selectOne(wrapper); QyWeChatURL result = qyWeChatURLMapper.selectOne(wrapper);
if (result == null){ if (result != null){
logger.error("queryURL error"); logger.error("queryURL error");
} logger.info("queryURL result {}",result);
logger.info("queryURL result {}",result.toString());
sendTextCardMessageUrl = result.getSendTextCardMessageUrl(); sendTextCardMessageUrl = result.getSendTextCardMessageUrl();
qyWechatGetTokenUrl = result.getQyWechatGetTokenUrl(); qyWechatGetTokenUrl = result.getQyWechatGetTokenUrl();
}; } else {
logger.error("queryURL error.");
}
}
} }