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