Forráskód Böngészése

导出表格去除uid验证

wangys 5 éve
szülő
commit
b0282ee310

+ 5 - 5
manage-common/src/main/java/cn/efunbox/manage/common/intercepter/AdminInterceptor.java

@@ -34,11 +34,11 @@ public class AdminInterceptor implements HandlerInterceptor {
         }
         ServletOutputStream out = response.getOutputStream();
         String token = request.getHeader("uid");
-//        if (StringUtils.isBlank(token)) {
-//            ApiResult invalidTokenResult = ApiResult.error(ApiCode.INVALID_TOKEN);
-//            out.write(JSONObject.toJSONString(invalidTokenResult).getBytes("UTF-8"));
-//            return false;
-//        }
+        if (StringUtils.isBlank(token)) {
+            ApiResult invalidTokenResult = ApiResult.error(ApiCode.INVALID_TOKEN);
+            out.write(JSONObject.toJSONString(invalidTokenResult).getBytes("UTF-8"));
+            return false;
+        }
 //        String user = redisTemplate.opsForValue().get(Constants.EFUNBOX_ADMIN_TOKEN_PREFIX + token);
 //        if (StringUtils.isBlank(user)) {
 //            ApiResult invalidTokenResult = ApiResult.error(ApiCode.INVALID_TOKEN);

BIN
经营数据管理平台数据统计表_2019-04-16.xls