Commit 15a6c14f by 孙喜旺

fix

1 parent b49b3227
......@@ -198,12 +198,11 @@ wecome:
- /msgaudit/check_single_agree
- /msgaudit/check_room_agree
- /msgaudit/groupchat/get
needAgentTokenUrl:
thirdAppUrl:
- /user/getuserinfo
- /get_jsapi_ticket
- /ticket/get
- /message/send
thirdAppUrl:
- /user/getuserinfo
#企微回调通知配置
callBack:
appIdOrCorpId: ww38152475d1bca752
......
......@@ -34,9 +34,6 @@ public class WeComeConfig {
/** 会话存档所需token 的url */
private String[] needChatTokenUrl;
/** 应用所需token 的url **/
private String[] needAgentTokenUrl;
/** 第三方自建应用得url*/
private String[] thirdAppUrl;
}
......@@ -64,8 +64,6 @@ public class WeAccessTokenInterceptor implements Interceptor{
token=iWeAccessTokenService.findProviderAccessToken();
}else if(Arrays.asList(weComeConfig.getNeedChatTokenUrl()).contains(uri)){ //需要会话存档token
token=iWeAccessTokenService.findChatAccessToken();
}else if(Arrays.asList(weComeConfig.getNeedAgentTokenUrl()).contains(uri)){ //需要应用token
token=iWeAccessTokenService.findAgentAccessToken();
}else if(Arrays.asList(weComeConfig.getThirdAppUrl()).contains(uri)){ //第三方自建应用token
token=iWeAccessTokenService.findThirdAppAccessToken(request.getHeaderValue(WeConstans.THIRD_APP_PARAM_TIP));
} else{
......
......@@ -22,6 +22,4 @@ public interface IWeAccessTokenService {
public void removeToken();
String findAgentAccessToken();
}
\ No newline at end of file
......@@ -186,10 +186,5 @@ public class WeAccessTokenServiceImpl implements IWeAccessTokenService {
redisCache.deleteObject(WeConstans.WE_PROVIDER_ACCESS_TOKEN);
}
@Override
public String findAgentAccessToken() {
return findAccessToken(WeConstans.WE_AGENT_ACCESS_TOKEN);
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!