Commit 4db49609 by qwmqiuwenmin

fix

parent 3db26cda
...@@ -275,18 +275,14 @@ public class WxEnterpriseController extends WebBaseController{ ...@@ -275,18 +275,14 @@ public class WxEnterpriseController extends WebBaseController{
} }
String res = qywxUserApiService.listSelfExternalUserid(wxEnterprise.getCorpid(), wxSecretKey, login.getStaffDTO().getWxUserId()); String res = qywxUserApiService.listSelfExternalUserid(wxEnterprise.getCorpid(), wxSecretKey, login.getStaffDTO().getWxUserId());
if(org.apache.commons.lang3.StringUtils.isBlank(res)){ if(org.apache.commons.lang3.StringUtils.isBlank(res)){
return resultResponse(HaoBanErrCode.ERR_1,false);
}
JSONObject json = JSON.parseObject(res);
if("0".equals(json.getString("errcode"))){
wxEnterprise.setWxSecretKey(wxSecretKey);
wxEnterprise.setWxSecretKeyLastTime(new Date()); wxEnterprise.setWxSecretKeyLastTime(new Date());
wxEnterpriseApiService.update(wxEnterprise); wxEnterpriseApiService.update(wxEnterprise);
return resultResponse(HaoBanErrCode.ERR_1,true); return resultResponse(HaoBanErrCode.ERR_1,false);
}else{ }else{
wxEnterprise.setWxSecretKey(wxSecretKey);
wxEnterprise.setWxSecretKeyLastTime(new Date()); wxEnterprise.setWxSecretKeyLastTime(new Date());
wxEnterpriseApiService.update(wxEnterprise); wxEnterpriseApiService.update(wxEnterprise);
return resultResponse(HaoBanErrCode.ERR_1,false); return resultResponse(HaoBanErrCode.ERR_1,true);
} }
} }
......
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