Commit 459c8cda by 徐高华

test

parent 777dd9c1
......@@ -344,13 +344,13 @@ public class WxEnterpriseInfoController extends WebBaseController {
logger.info("登录失败,从微信获取用户信息失败");
return resultResponse(HaoBanErrCode.ERR_6);
}
if (!user.getCorpId().equals(enterpriseDTO.getWxCorpid()) && !user.getCorpId().equals(enterpriseDTO.getOpenCorpid())) {
if (null == qo.getCorpId() && !user.getCorpId().equals(enterpriseDTO.getWxCorpid()) && !user.getCorpId().equals(enterpriseDTO.getOpenCorpid())) {
logger.info("corpid不一致,{},{},{}",user.getCorpId(),enterpriseDTO.getWxCorpid(),enterpriseDTO.getOpenCorpid());
return resultResponse(HaoBanErrCode.ERR_500003, user.getCorpId());
}
enterpriseDTO = wxEnterpriseApiService.getEnterpriseBycorpId(qo.getCorpId());
enterpriseDTO = wxEnterpriseApiService.getEnterpriseBycorpId(user.getCorpId());
if (enterpriseDTO == null) {
logger.info("该企业不存在corpid={},{}", user.getCorpId());
logger.info("该企业不存在corpid={}", user.getCorpId());
return resultResponse(HaoBanErrCode.ERR_400002);
}
} else {
......
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