Explorar o código

空校验对象预处理

skyfffire %!s(int64=2) %!d(string=hai) anos
pai
achega
c3ce677350
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;