Commit d5bb84d2 by 徐高华

test

parent a4663700
...@@ -141,11 +141,11 @@ public class WxEnterpriseInfoController extends WebBaseController { ...@@ -141,11 +141,11 @@ 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 = qywxCorpApiService.getCodeSession(config.getWxSuiteid(), code);
if(null != RedisUtil.getCache("haoban-self-test")) {
WxEnterpriseQwDTO qwDTO1 = this.wxEnterpriseApiService.getQwInfo("xxxx") ; WxEnterpriseQwDTO qwDTO1 = this.wxEnterpriseApiService.getQwInfo("xxxx") ;
String userDTOJson = qywxUserApiService.getUserByCode(qwDTO1.getDkCorpid(), qwDTO1.getSelfSecret(), code); userDTOJson = qywxUserApiService.getUserByCode(qwDTO1.getDkCorpid(), qwDTO1.getSelfSecret(), 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"}
logger.info("好办登录={}", userDTOJson); logger.info("好办登录={}", userDTOJson);
......
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