LiuJ 1 ヶ月 前
コミット
fd978d1927
2 ファイル変更3 行追加1 行削除
  1. 2 0
      app/JsonRpc/NewsService.php
  2. 1 1
      app/Model/JobHunting.php

+ 2 - 0
app/JsonRpc/NewsService.php

@@ -3557,6 +3557,7 @@ class NewsService implements NewsServiceInterface
         unset($data['department']);
         unset($data['job_timeList']);
         unset($data['job_content']);
+        unset($data['job_typename']); //不知道这是啥,
         $data['created_at'] = date('Y-m-d H:i:s');
         $data['updated_at'] = date('Y-m-d H:i:s');
         var_dump($data, '-----------------test---------');
@@ -4131,6 +4132,7 @@ class NewsService implements NewsServiceInterface
             $where['complaint.status'] =  $data['status'];
         }
         var_dump(!empty($data['deal_user']), '----------1');
+        var_dump($where, '----------2');
         $result = Complaint::where($where)
             ->when(!empty($data['status1']), function ($query) use ($data) {
                 $query->whereIn('complaint.status', [1, 3]);   //1待审核2已审核3已拒绝

+ 1 - 1
app/Model/JobHunting.php

@@ -18,7 +18,7 @@ class JobHunting extends Model
     /**
      * The attributes that are mass assignable.
      */
-    protected array $fillable = [];
+    protected array $guarded = [];
 
     /**
      * The attributes that should be cast to native types.