north 7 年之前
父節點
當前提交
97286da3d6
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      www/protected/modules/j/controllers/HouseKeepingController.php

+ 6 - 1
www/protected/modules/j/controllers/HouseKeepingController.php

@@ -131,6 +131,11 @@ class HouseKeepingController extends JBaseController
         $h->tech = $tech;
         $h->contract = 1;
         $h->time = time();
-        $h->save();
+        $result = $h->save();
+        if ($result) {
+            CommonFn::requestAjax($result, '添加成功', array());
+        } else {
+            CommonFn::requestAjax($result, '添加失败', array());
+        }
     }
 }