Commit e6d46b98 by 徐高华

更新应用表的corpid

parent dce837f7
...@@ -60,6 +60,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService { ...@@ -60,6 +60,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
public void callbackReviceEnterprise(QywxCorpInfoSimpleDTO dto) { public void callbackReviceEnterprise(QywxCorpInfoSimpleDTO dto) {
log.info("企业微信授权信息:{}", JSON.toJSONString(dto)); log.info("企业微信授权信息:{}", JSON.toJSONString(dto));
String corpid = dto.getCorpid(); String corpid = dto.getCorpid();
String corpidIn = dto.getCorpid();
String corpName = dto.getCorpName(); String corpName = dto.getCorpName();
String siteId = dto.getSuiteId(); String siteId = dto.getSuiteId();
String agentId = dto.getAgentid(); String agentId = dto.getAgentid();
...@@ -126,6 +127,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService { ...@@ -126,6 +127,7 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
wxApplicationService.insert(haobanWxApplication); wxApplicationService.insert(haobanWxApplication);
} else { } else {
haobanWxApplication.setPermanentCode(permanentCode); haobanWxApplication.setPermanentCode(permanentCode);
haobanWxApplication.setCorpid(corpidIn);
wxApplicationService.update(haobanWxApplication); wxApplicationService.update(haobanWxApplication);
} }
// 企业代开发Secret = permanentCode // 企业代开发Secret = permanentCode
......
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