Commit 46facba8 by qwmqiuwenmin

fix

parent efb98954
......@@ -238,6 +238,7 @@ public class WxEnterpriseController extends WebBaseController{
if(wxEnterprise == null){
return resultResponse(HaoBanErrCode.ERR_10012);
}
contactSecret = contactSecret.trim();
UserDTO user = qywxUserApiService.getSelfWorkWxUser(wxEnterprise.getCorpid(), contactSecret, login.getStaffDTO().getWxUserId());
logger.info("【保存联系人key】user={}",JSON.toJSONString(user));
if(user != null){
......@@ -267,6 +268,7 @@ public class WxEnterpriseController extends WebBaseController{
if(wxEnterprise == null){
return resultResponse(HaoBanErrCode.ERR_10012);
}
wxSecretKey = wxSecretKey.trim();
String res = qywxUserApiService.listSelfExternalUserid(wxEnterprise.getCorpid(), wxSecretKey, login.getStaffDTO().getWxUserId());
logger.info("【保存联系人key】res={}",res);
if(res == null){
......@@ -296,6 +298,7 @@ public class WxEnterpriseController extends WebBaseController{
if(wxEnterprise == null){
return resultResponse(HaoBanErrCode.ERR_10012);
}
memberSecret = memberSecret.trim();
UserDTO user = qywxUserApiService.getSelfWorkWxUser(wxEnterprise.getCorpid(), memberSecret, login.getStaffDTO().getWxUserId());
if(user != null){
wxEnterprise.setMemberSecret(memberSecret);
......
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