浏览代码

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

15313670163 3 月之前
父节点
当前提交
d397f3fa86
共有 1 个文件被更改,包括 3 次插入0 次删除
  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 = [];