更新 QyWeChatURLService.java
This commit is contained in:
@@ -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);
|
||||||
|
sendTextCardMessageUrl = result.getSendTextCardMessageUrl();
|
||||||
|
qyWechatGetTokenUrl = result.getQyWechatGetTokenUrl();
|
||||||
|
} else {
|
||||||
|
logger.error("queryURL error.");
|
||||||
}
|
}
|
||||||
logger.info("queryURL result: {}",result.toString());
|
}
|
||||||
sendTextCardMessageUrl = result.getSendTextCardMessageUrl();
|
|
||||||
qyWechatGetTokenUrl = result.getQyWechatGetTokenUrl();
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user