更新 QyWeChatURLService.java

pull/1/head
wangsiyuan 2023-12-16 14:34:02 +08:00
parent 5f8f281bec
commit b9c55d3928
1 changed files with 7 additions and 4 deletions

View File

@ -14,13 +14,16 @@ import org.springframework.stereotype.Service;
@Service
public class QyWeChatURLService {
private final Logger logger = LoggerFactory.getLogger(QyWeChatURLService.class);
@Autowired
private QyWeChatURLMapper qyWeChatURLMapper;
@Autowired
private UserConfig userConfig;
private final QyWeChatURLMapper qyWeChatURLMapper;
private final UserConfig userConfig;
private String sendTextCardMessageUrl;
private String qyWechatGetTokenUrl;
public QyWeChatURLService(QyWeChatURLMapper qyWeChatURLMapper, UserConfig userConfig) {
this.qyWeChatURLMapper = qyWeChatURLMapper;
this.userConfig = userConfig;
}
public String getSendTextCardMessageUrl() {
if (sendTextCardMessageUrl == null){
queryURL();