raojiaolong@163.com hace 3 años
padre
commit
6b0b023e04
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      mhotel/src/com/happy/action/bookAction.java

+ 4 - 1
mhotel/src/com/happy/action/bookAction.java

@@ -167,7 +167,10 @@ public class bookAction extends ActionSupport implements ServletRequestAware {
                     ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
                     ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
                     return null;
                     return null;
                 }
                 }
-
+                resultJson.put("message", msg+"成功");
+                resultJson.put("code", 500);
+                ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
+                return null;
             } else {
             } else {
                 resultJson.put("message", msg+"失败");
                 resultJson.put("message", msg+"失败");
                 resultJson.put("code", 502);
                 resultJson.put("code", 502);