Commit fa4b04bf by qwmqiuwenmin

fix

parent 84e97bb0
...@@ -246,6 +246,8 @@ public class WxEnterpriseController extends WebBaseController{ ...@@ -246,6 +246,8 @@ public class WxEnterpriseController extends WebBaseController{
} }
UserDTO user = qywxUserApiService.getSelfWorkWxUser(wxEnterprise.getCorpid(), contactSecret, login.getStaffDTO().getWxUserId()); UserDTO user = qywxUserApiService.getSelfWorkWxUser(wxEnterprise.getCorpid(), contactSecret, login.getStaffDTO().getWxUserId());
if(user != null){ if(user != null){
wxEnterprise.setContactSecret(contactSecret);
wxEnterprise.setContactSecretLastTime(new Date());
return resultResponse(HaoBanErrCode.ERR_1,true); return resultResponse(HaoBanErrCode.ERR_1,true);
}else{ }else{
return resultResponse(HaoBanErrCode.ERR_1,false); return resultResponse(HaoBanErrCode.ERR_1,false);
...@@ -274,6 +276,7 @@ public class WxEnterpriseController extends WebBaseController{ ...@@ -274,6 +276,7 @@ public class WxEnterpriseController extends WebBaseController{
JSONObject json = JSON.parseObject(res); JSONObject json = JSON.parseObject(res);
if("0".equals(json.getString("errcode"))){ if("0".equals(json.getString("errcode"))){
wxEnterprise.setWxSecretKey(wxSecretKey); wxEnterprise.setWxSecretKey(wxSecretKey);
wxEnterprise.setWxSecretKeyLastTime(new Date());
wxEnterpriseApiService.update(wxEnterprise); wxEnterpriseApiService.update(wxEnterprise);
return resultResponse(HaoBanErrCode.ERR_1,true); return resultResponse(HaoBanErrCode.ERR_1,true);
}else{ }else{
...@@ -298,6 +301,9 @@ public class WxEnterpriseController extends WebBaseController{ ...@@ -298,6 +301,9 @@ public class WxEnterpriseController extends WebBaseController{
} }
UserDTO user = qywxUserApiService.getSelfWorkWxUser(wxEnterprise.getCorpid(), memberSecret, login.getStaffDTO().getWxUserId()); UserDTO user = qywxUserApiService.getSelfWorkWxUser(wxEnterprise.getCorpid(), memberSecret, login.getStaffDTO().getWxUserId());
if(user != null){ if(user != null){
wxEnterprise.setMemberSecret(memberSecret);
wxEnterprise.setMemberSecretLastTime(new Date());
wxEnterpriseApiService.update(wxEnterprise);
return resultResponse(HaoBanErrCode.ERR_1,true); return resultResponse(HaoBanErrCode.ERR_1,true);
}else{ }else{
return resultResponse(HaoBanErrCode.ERR_1,false); return resultResponse(HaoBanErrCode.ERR_1,false);
......
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