소스 검색

Updated home

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

+ 3 - 6
www/protected/controllers/HouseKeepingController.php

@@ -91,7 +91,9 @@ class HouseKeepingController extends AdminController
             CommonFn::requestAjax(false, '修改失败', array());
         }
         $h = HouseKeeping::get(new MongoId($id));
-
+        if (!empty($cancel_cause)) {
+            $h->cancel_cause = $cancel_cause;
+        }
         if (!empty($contract)) {
             $h->contract = $contract;
         }
@@ -115,11 +117,6 @@ class HouseKeepingController extends AdminController
         }
         if (!empty($status)) {
             $h->status = $status;
-            if (intval($status) == 4) {
-                if (!empty($cancel_cause)) {
-                    $h->cancel_cause = $cancel_cause;
-                }
-            }
         }
         if (!empty($status_time)) {
             $h->status_time = $status_time;