raojiaolong@163.com %!s(int64=3) %!d(string=hai) anos
pai
achega
6b0b023e04
Modificáronse 1 ficheiros con 4 adicións e 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());
                     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);