|
@@ -3047,14 +3047,16 @@ class NewsService implements NewsServiceInterface
|
|
|
if(empty($job)){
|
|
|
return Result::error("招聘信息不存在", 0);
|
|
|
}
|
|
|
- // 状态 0:待审核;1:已审核通过;(只有企业会员需要审核);2:已驳回;
|
|
|
- if($user['type_id']== 3 && ($data['status'] == 1 || $data['status'] == 2)){
|
|
|
+ // 状态 0:待审核;1:已审核通过;;2:已驳回;
|
|
|
+ if($user['type_id'] != 10000){
|
|
|
return Result::error("用户暂无权限审核此招聘信息!", 0);
|
|
|
}
|
|
|
// 驳回原因
|
|
|
if($data['status'] == 2){
|
|
|
$data['refuse_reason'] = $data['refuse_reason']?? null;
|
|
|
}
|
|
|
+ $data['action_id'] = $data['user_id'];
|
|
|
+ unset($data['user_id']);
|
|
|
$result = JobRecruiting::where('id', $data['id'])->update($data);
|
|
|
if(empty($result)){
|
|
|
return Result::error("审核失败", 0);
|