Explorar el Código

fix(修复接口请求错误信息):

huangzqa hace 4 años
padre
commit
c2b0148a16

+ 1 - 1
src/main/java/com/dragoninfo/dcuc/authweb/config/DcucAuthWebConfig.java

@@ -25,5 +25,5 @@ public class DcucAuthWebConfig {
     /**
      * 是否启用接口必传参数检查
      */
-    private boolean isEnableApiCheck = true;
+    private boolean enableApiCheck;
 }

+ 1 - 1
src/main/java/com/dragoninfo/dcuc/authweb/interceptor/AuthBeforeResInterceptor.java

@@ -85,7 +85,7 @@ public class AuthBeforeResInterceptor implements HandlerInterceptor {
 
             return true;
         }
-        return false;
+        throw new EvidenceException(HttpStatus.MULTIPLE_CHOICES.value(), "请传入凭据");
     }
 
     private String getIdcard(HttpServletRequest request) {

+ 1 - 1
src/main/resources/application.yml

@@ -74,7 +74,7 @@ dcuc:
   authweb:
     app-code: QXXT0000000000000001
     auth-access: true
-    is-enable-api-check: false
+    enable-api-check: false
     resource:
       #应用资源请求参数
       pageSize: 50