Commit ee8ae072 by 缪晖

Merge branch 'hotfix/20201230_collage_shoppingcart_user_unauthorized_miaohui' into 'master'

查询拼单信息经过mvcAspect将异常抛出降级为错误码返回,减少ERROR级别日志输出

See merge request !103
parents 2b807a82 fc1c1b99
......@@ -6,6 +6,7 @@ import cn.freemud.enums.CommonResponseResult;
import cn.freemud.inteceptor.CommonServiceException;
import cn.freemud.redis.RedisCache;
import cn.freemud.utils.LogUtil;
import cn.freemud.utils.ResponseUtil;
import com.freemud.api.assortment.datamanager.entity.db.AssortmentOpenPlatformConfig;
import com.freemud.api.assortment.datamanager.entity.vo.AssortmentCustomerInfoVo;
import com.freemud.api.assortment.datamanager.manager.AssortmentOpenPlatformConfigManager;
......@@ -99,7 +100,8 @@ public class WebAspect {
}
List<String> unauthorizedUrls = Arrays.asList(getNotFilterUrl(CommonRedisKeyConstant.SAAS_NOT_AUTHORIZED_URL, NOT_AUTHORIZED_KEY).split(","));
if (!unauthorizedUrls.contains(requestUrl) && StringUtils.isEmpty(userInfo.getUnionId()) && !requestUrl.contains("MCoffee")) {
throw new CommonServiceException(CommonResponseResult.USER_UNAUTHORIZED);
//throw new CommonServiceException(CommonResponseResult.USER_UNAUTHORIZED);
return ResponseUtil.error(CommonResponseResult.USER_UNAUTHORIZED.getCode(), CommonResponseResult.USER_UNAUTHORIZED.getMessage());
}
} else {
// app上是thirdMemberId概念
......
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