Sfoglia il codice sorgente

空校验对象预处理

skyfffire 2 anni fa
parent
commit
c3ce677350
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/main/java/common/interceptor/AuthInterceptor.java

+ 2 - 0
src/main/java/common/interceptor/AuthInterceptor.java

@@ -29,6 +29,8 @@ public class AuthInterceptor implements Interceptor {
 	}
 	
 	public boolean checkAuth(JSONObject requestJsonObj) {
+		if (requestJsonObj == null) return false;
+		
 		JSONObject authObj = requestJsonObj.getJSONObject("auth");
 		if (authObj == null) return false;