Parcourir la source

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

15313670163 il y a 3 mois
Parent
commit
d397f3fa86
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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 = [];