Browse Source

Merge branch 'web_sannong_fr'

15313670163 6 ngày trước cách đây
mục cha
commit
1131810f17
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      app/JsonRpc/NewsService.php

+ 2 - 0
app/JsonRpc/NewsService.php

@@ -2984,10 +2984,12 @@ class NewsService implements NewsServiceInterface
         if(empty($user) || ($user['type_id']!= 3 && $user['type_id']!= 10000)){
             return Result::error("用户暂无权限!", 0);
         }
+        // '状态   0:待审核;1:已审核通过;(只有企业会员需要审核);2:已拒绝;
         $result = JobRecruiting::where('website_id', $data['website_id'])
             ->when(isset($user['type_id']) && $user['type_id']== 3, function ($query) use ($user) {
                 $query->where('user_id', $user['id']);
             })
+            ->where('status', 1)
             ->select('id','title','website_id','user_id','updated_at')
             ->orderBy('updated_at', 'desc')
             ->limit($data['pageSize'])