Browse Source

增加ip拦截日志拦截

hurugang 3 years ago
parent
commit
e0d6efaa6a

+ 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) {