|
@@ -135,7 +135,17 @@ public class AccessGlobalFilter implements GlobalFilter, Ordered {
|
|
|
|
|
|
// 禁止登录
|
|
|
if (user.getHasLogin() != 1) {
|
|
|
- return writeErrorResponse(response,"{\"code\":\"1062\",\"data\":null,\"message\":\"用户状态异常,请联系管理员\"}");
|
|
|
+ return writeErrorResponse(response, "{\"code\":\"1062\",\"data\":null,\"message\":\"用户状态异常,请联系管理员\"}");
|
|
|
+ }
|
|
|
+
|
|
|
+ // 禁止下单
|
|
|
+ if (servicePath.equals("/mall/app/order/add") && user.getHasOrder() != 1) {
|
|
|
+ return writeErrorResponse(response, "{\"code\":\"1062\",\"data\":null,\"message\":\"用户状态异常,请联系管理员\"}");
|
|
|
+ }
|
|
|
+
|
|
|
+ // 禁止提现
|
|
|
+ if (servicePath.equals("/cif/api/withdraw/record/add") && user.getHasWithdraw() != 1) {
|
|
|
+ return writeErrorResponse(response, "{\"code\":\"1062\",\"data\":null,\"message\":\"用户状态异常,请联系管理员\"}");
|
|
|
}
|
|
|
|
|
|
// 添加请求头
|