linwu 3 年之前
父節點
當前提交
c8162ff4d3

+ 2 - 1
app/Admin/Controllers/Content/BuyHouseRsController.php

@@ -93,6 +93,7 @@ class BuyHouseRsController extends Controller
                 'rs_check_status'  => $status,
                 'rs_check_comment' => $reason,
                 'rs_check_time'    => date('Y-m-d H:i:s'),
+                'status'           => $status == 2 ? 1 : 3,
             ]);
         if ($result) {
             admin_toastr('审核成功', 'success');
@@ -110,7 +111,7 @@ class BuyHouseRsController extends Controller
     {
         $id   = $request->id;
         $info = TalentHouseApply::find($id);;
-        $info->family = json_decode($info->family);
+        $info->family     = json_decode($info->family);
         $info->marry_text = $this->marry[$info->marry];
 
         //layer相册层

+ 1 - 0
app/Admin/Controllers/Content/BuyHouseZjController.php

@@ -93,6 +93,7 @@ class BuyHouseZjController extends Controller
                 'zj_check_status'  => $status,
                 'zj_check_comment' => $reason,
                 'zj_check_time'    => date('Y-m-d H:i:s'),
+                'status'           => $status,
             ]);
         if ($result) {
             admin_toastr('审核成功', 'success');

+ 4 - 3
app/Http/Controllers/Web/Content/BuyhouseController.php

@@ -200,7 +200,7 @@ class BuyhouseController extends WebBaseController
                 $back_url = \Illuminate\Support\Facades\URL::previous();
                 return $this->showMessage('目前仅支持晋江高层次人才申报', $back_url, true, '上一页', '3');
             }
-            $add    = [
+            $add   = [
                 'user_id'              => $user_id,
                 'house_id'             => $id,
                 'name'                 => $talent['name'],
@@ -219,8 +219,8 @@ class BuyhouseController extends WebBaseController
                 'created_at'           => date('Y-m-d H:i:s'),
                 'updated_at'           => date('Y-m-d H:i:s'),
             ];
-            $id     = TalentHouseApply::insertGetId($add);
-            $apply  = TalentHouseApply::find($id);
+            $id    = TalentHouseApply::insertGetId($add);
+            $apply = TalentHouseApply::find($id);
         }
 
         $apply['family']             = json_decode($apply['family'], true);
@@ -315,6 +315,7 @@ class BuyhouseController extends WebBaseController
         $info->street             = $data['street'];
         $info->house_condition    = $data['house_condition'];
         $info->house_policy       = $data['house_policy'];
+        $info->status             = 1;
 
         //审核状态
         if ($info->rs_check_status == 3) {