Browse Source

空校验对象预处理

skyfffire 2 năm trước cách đây
mục cha
commit
c3ce677350
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;