更新 QyWeChatURLService.java
parent
9eb3f6c61c
commit
69800cd27b
|
|
@ -14,6 +14,7 @@ public class QyWeChatURLService {
|
|||
private final QyWeChatURLMapper qyWeChatURLMapper;
|
||||
private final UserConfig userConfig;
|
||||
private String sendTextCardMessageUrl;
|
||||
private String qyWechatGetTokenUrl;
|
||||
|
||||
public QyWeChatURLService(QyWeChatURLMapper qyWeChatURLMapper, UserConfig userConfig) {
|
||||
this.qyWeChatURLMapper = qyWeChatURLMapper;
|
||||
|
|
@ -31,11 +32,13 @@ public class QyWeChatURLService {
|
|||
QueryWrapper<QyWeChatURL> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq("phone_number", phoneNumberToSearch);
|
||||
QyWeChatURL result = qyWeChatURLMapper.selectOne(wrapper);
|
||||
if (result == null){
|
||||
if (result != null){
|
||||
logger.error("queryURL error");
|
||||
}
|
||||
logger.info("queryURL result: {}",result.toString());
|
||||
logger.info("queryURL result: {}",result);
|
||||
sendTextCardMessageUrl = result.getSendTextCardMessageUrl();
|
||||
qyWechatGetTokenUrl = result.getQyWechatGetTokenUrl();
|
||||
};
|
||||
} else {
|
||||
logger.error("queryURL error.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue