Commit 0da08634 by 徐高华

朋友圈

parent de7e4827
......@@ -179,6 +179,7 @@ public class QywxOpenController {
public RestResponse<OpenStaffDTO> init(String staffId, @RequestParam(defaultValue = "0") int loginAgainFlag , String wxEnterpriseId , String enterpriseId) {
WebLoginDTO loginUser = AuthWebRequestUtil.getLoginUser();
ServiceResponse<OpenStaffDTO> staffResp = this.openStaffApiService.getByStaffId(staffId) ;
boolean flag = false ;
if(null != loginUser) {
wxEnterpriseId = loginUser.getWxEnterpriseId();
enterpriseId = loginUser.getEnterpriseId();
......@@ -186,6 +187,7 @@ public class QywxOpenController {
return RestResponse.failure("9999","参数为空") ;
}
}else {
flag = true ;
// 未登录直接通过参数授权
if(org.apache.commons.lang3.StringUtils.isAnyBlank(wxEnterpriseId,enterpriseId,staffId)) {
return RestResponse.failure("9999","参数为空") ;
......@@ -203,6 +205,9 @@ public class QywxOpenController {
}
String checkMsg = this.check(wxEnterpriseId, enterpriseId , null != staffResp.getResult());
if (null != checkMsg) {
if(flag) {
return RestResponse.successResult();
}
return RestResponse.failure("9999", checkMsg);
}
if (StringUtils.isBlank(staffId)) {
......
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