|
|
|
@@ -161,6 +161,9 @@ public class WxUserGrantController extends BaseController { |
|
|
|
if (wxAuthorizerInfo == null) { |
|
|
|
return new ResultData(ErrorCode.APP_ID_NOT_FOUND); |
|
|
|
} |
|
|
|
if (!wxAuthorizerInfo.getEnable().equals(EnumEnableType.Enable.getCode())) { |
|
|
|
return new ResultData(ErrorCode.APP_ID_NOT_ENABLE); |
|
|
|
} |
|
|
|
// 集团版,获取子集团list |
|
|
|
List<WxMall> mallList = null; |
|
|
|
if (wxAuthorizerInfo.getGroupSupport().equals(EnumGroupSupport.SUPPORT.getCode())) { |
|
|
|
@@ -175,6 +178,9 @@ public class WxUserGrantController extends BaseController { |
|
|
|
if (wxAppinfo == null) { |
|
|
|
return new ResultData(ErrorCode.APP_ID_NOT_FOUND); |
|
|
|
} |
|
|
|
if (!wxAppinfo.getEnable().equals(EnumEnableType.Enable.getCode())) { |
|
|
|
return new ResultData(ErrorCode.APP_ID_NOT_ENABLE); |
|
|
|
} |
|
|
|
wxMaService = getWeappServiceByAppInfo(wxAppinfo); |
|
|
|
|
|
|
|
if (StringUtils.isBlank(wxAppinfo.getAccessToken())) { |
|
|
|
|