Commit e1ee8e7a by 徐高华

test

parent d5bb84d2
...@@ -141,10 +141,12 @@ public class WxEnterpriseInfoController extends WebBaseController { ...@@ -141,10 +141,12 @@ public class WxEnterpriseInfoController extends WebBaseController {
@IgnoreLogin @IgnoreLogin
public HaobanResponse getInfoByCode(String code) { public HaobanResponse getInfoByCode(String code) {
logger.info("code:{}", code); logger.info("code:{}", code);
String userDTOJson = qywxCorpApiService.getCodeSession(config.getWxSuiteid(), code); String userDTOJson = null ;
if(null != RedisUtil.getCache("haoban-self-test")) { if(null != RedisUtil.getCache("haoban-self-test")) {
WxEnterpriseQwDTO qwDTO1 = this.wxEnterpriseApiService.getQwInfo("xxxx") ; WxEnterpriseQwDTO qwDTO1 = this.wxEnterpriseApiService.getQwInfo("xxxx") ;
userDTOJson = qywxUserApiService.getUserByCode(qwDTO1.getDkCorpid(), qwDTO1.getSelfSecret(), code); userDTOJson = qywxUserApiService.getUserByCode(qwDTO1.getDkCorpid(), qwDTO1.getSelfSecret(), code);
}else {
userDTOJson = qywxCorpApiService.getCodeSession(config.getWxSuiteid(), code);
} }
// {"errcode":0,"corpid":"wweac4ef962720aa12","session_key":"oNKOu4tDcnTWdj4wOg75YQ==","errmsg":"ok", // {"errcode":0,"corpid":"wweac4ef962720aa12","session_key":"oNKOu4tDcnTWdj4wOg75YQ==","errmsg":"ok",
// "open_userid":"wo59NLDQAAxeJ-Nr7_vwkZVc7QOG73PQ","userid":"xugaohua","deviceid":"0BB1D1FA-C5A2-4BDD-80A2-33B6BB230F8A"} // "open_userid":"wo59NLDQAAxeJ-Nr7_vwkZVc7QOG73PQ","userid":"xugaohua","deviceid":"0BB1D1FA-C5A2-4BDD-80A2-33B6BB230F8A"}
......
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