Browse Source

修改bug

raojiaolong@163.com 2 years ago
parent
commit
6b0b023e04
1 changed files with 4 additions and 1 deletions
  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());
                     return null;
                 }
-
+                resultJson.put("message", msg+"成功");
+                resultJson.put("code", 500);
+                ResUtil.writeJson(ServletActionContext.getResponse(), resultJson.toString());
+                return null;
             } else {
                 resultJson.put("message", msg+"失败");
                 resultJson.put("code", 502);