north 7 년 전
부모
커밋
d2eadfb790
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      www/protected/modules/j/controllers/HouseKeepingController.php

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

@@ -134,7 +134,7 @@ class HouseKeepingController extends JBaseController
             $h->tech_mobile = $tech_mobile;
         }
         $success = $h->save();
-        if ($h->save() && intval($h->status) == 2) {//status_time
+        if ($success && intval($h->status) == 2) {//status_time
             $c = new EMongoCriteria();
             $c->store_id('==',$h->store_id);
             $store = Store::model()->find($c);
@@ -153,6 +153,7 @@ class HouseKeepingController extends JBaseController
             ));
 
         }
+
         CommonFn::requestAjax($success, '修改成功', array());
 
     }