Commit b26f3ba8 authored by 王亮's avatar 王亮

remove unused code.

parent c00cbc54
......@@ -37,7 +37,6 @@ import java.util.stream.Collectors;
@Slf4j
@Service
public class WechatFollowServiceImpl implements IWechatFollowService {
private static final String WECHAT_FOLLOW_TOKEN_KEY_PREFIX = "wechatFollow:token:";
@Value("${wechat.appid}")
private String appId;
@Value("${wechat.secret}")
......@@ -51,9 +50,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
// 部门
@Value("${qywehcat.departmentId}")
private Integer departmentId;
private String accessTokenUrl;
private String userListUrl;
private String qyAccessTokenUrl;
......@@ -107,7 +103,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
@PostConstruct
private void init() {
// 公众号
accessTokenUrl = String.format("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s", appId, secret);
userListUrl = "https://api.weixin.qq.com/cgi-bin/user/get?access_token=%s&next_openid=%s";
// 企业微信
qyAccessTokenUrl = String.format("https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s", corpid, qySecret);
......@@ -210,7 +205,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
private JsonResult executeEnterpriseFollowStatus(String s, String period) {
try {
// String response = httpService.get(qyAccessTokenUrl);
String response = httpService.get(msgEnterpriseToken);
if (StringUtils.isEmpty(response)) {
log.info("请求消息中心企业微信Token为空---{}", response);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment