|
|
@@ -1,6 +1,7 @@ |
|
|
|
package com.iformall.interceptor; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.iformall.common.CommonConstants; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.domain.po.WxThirdPartyApi; |
|
|
|
import com.iformall.exception.MallinkException; |
|
|
@@ -52,6 +53,9 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter { |
|
|
|
if(apiConfig == null){ |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"非法请求"); |
|
|
|
} |
|
|
|
if (apiConfig.getStatus().intValue() == CommonConstants.STATUS_ABNORMAL.intValue()) { |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"app已封禁"); |
|
|
|
} |
|
|
|
request.setAttribute(Constant.SERVICE_ID, apiConfig.getServiceId()); |
|
|
|
request.setAttribute(Constant.APP_Id, apiConfig.getAppId()); |
|
|
|
request.setAttribute(Constant.TENANT_ID, apiConfig.getTenantId()); |
|
|
|