瀏覽代碼

空校验对象预处理

skyfffire 2 年之前
父節點
當前提交
c3ce677350
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;