浏览代码

增加ip拦截日志拦截

hurugang 3 年之前
父节点
当前提交
e0d6efaa6a
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/main/java/cn/hnthyy/thmz/controller/api/MedicalViewApiController.java

+ 5 - 5
src/main/java/cn/hnthyy/thmz/controller/api/MedicalViewApiController.java

@@ -507,7 +507,7 @@ public class MedicalViewApiController {
         WhiteList whiteList=whiteListService.queryByIpAddress(ip);
         if(whiteList==null){
             results.put("resultCode", -1);
-            results.put("resultMessage", "当前请求来源未在白名单中");
+            results.put("message", "当前请求来源未在白名单中【"+ip+"】");
             return results;
         }
         if (haicipat == null) {
@@ -678,7 +678,7 @@ public class MedicalViewApiController {
         WhiteList whiteList=whiteListService.queryByIpAddress(ip);
         if(whiteList==null){
             results.put("resultCode", -1);
-            results.put("resultMessage", "当前请求来源未在白名单中");
+            results.put("message", "当前请求来源未在白名单中【"+ip+"】");
             return results;
         }
         if (haiciCharge == null) {
@@ -924,7 +924,7 @@ public class MedicalViewApiController {
         WhiteList whiteList=whiteListService.queryByIpAddress(ip);
         if(whiteList==null){
             results.put("resultCode", -1);
-            results.put("resultMessage", "当前请求来源未在白名单中");
+            results.put("message", "当前请求来源未在白名单中【"+ip+"】");
             return results;
         }
         if (mzDepositFile == null) {
@@ -1071,7 +1071,7 @@ public class MedicalViewApiController {
             WhiteList whiteList=whiteListService.queryByIpAddress(ip);
             if(whiteList==null){
                 results.put("resultCode", -1);
-                results.put("resultMessage", "当前请求来源未在白名单中");
+                results.put("message", "当前请求来源未在白名单中【"+ip+"】");
                 return results;
             }
             mzPrescriptionVo.setJzFlag(YesNoEnum.NO.code);
@@ -1844,7 +1844,7 @@ public class MedicalViewApiController {
             WhiteList whiteList=whiteListService.queryByIpAddress(ip);
             if(whiteList==null){
                 resultMap.put("resultCode", -1);
-                resultMap.put("message", "当前请求来源未在白名单中");
+                resultMap.put("message", "当前请求来源未在白名单中【"+ip+"】");
                 return resultMap;
             }
             if (mzyReqrecPageDto == null || mzyReqrecPageDto.getMzyReqrec() == null) {