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());
+        }
     }
 }