Browse Source

修改获取职场机会列表的接口-限制个人会员回显内容

15313670163 3 months ago
parent
commit
d397f3fa86
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/JsonRpc/NewsService.php

+ 3 - 0
app/JsonRpc/NewsService.php

@@ -1649,6 +1649,9 @@ class NewsService implements NewsServiceInterface
         if(empty($user) || ($user['type_id']!= 10000 && $user['type_id']!= 1)){
             return Result::error("用户不存在", 0);
         }
+        if($user['type_id'] == 1){
+            $where['user_id'] = $user['id'];
+        }
         $recruitingId = JobApply::where('user_id', $data['user_id'])
         ->pluck('recruit_id');
         $where = [];