Explorar el Código

去除新增时菜单的判断

raojiaolong@163.com hace 3 años
padre
commit
9e26b42120
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      mhotel/src/com/happy/action/adminAction.java

+ 2 - 2
mhotel/src/com/happy/action/adminAction.java

@@ -99,7 +99,7 @@ public class adminAction extends ActionSupport implements ServletRequestAware {
                 ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
                 return null;
             }
-            if (admin.getAdminName()==null || admin.getUserName()==null || admin.getLevel()==null || admin.getAdminPower()==null || admin.getAdminPower().equals("") || admin.getPhone()==null){
+            if (admin.getAdminName()==null || admin.getUserName()==null || admin.getLevel()==null || admin.getPhone()==null){
                 resultJson.put("message", "各参数不能为空");
                 resultJson.put("code", 500);
                 ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
@@ -169,7 +169,7 @@ public class adminAction extends ActionSupport implements ServletRequestAware {
                 ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
                 return null;
             }
-            if (admin.getAdminName()==null || admin.getUserName()==null || admin.getLevel()==null || admin.getAdminPower()==null || admin.getAdminPower().equals("") || admin.getPhone()==null){
+            if (admin.getAdminName()==null || admin.getUserName()==null || admin.getLevel()==null || admin.getPhone()==null){
                 resultJson.put("message", "各参数不能为空");
                 resultJson.put("code", 500);
                 ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());