申请青年编委,增加对已经是的人,阻止申请

This commit is contained in:
wangjinlei
2026-07-07 09:36:18 +08:00
parent 9e370fe390
commit 6df8cae940

View File

@@ -164,7 +164,10 @@ class Ucenter extends Base{
if($check){
return jsonError("Your application for Editorial Board is processing. Please do not repeat it.");
}
$check_has = $this->user_to_yboard_obj->where('user_id',$data['user_id'])->where('state',0)->find();
if ($check_has){
return jsonError("You have already applied for Editorial Board.");
}
//判断是否上传CV
$aWhere = ['user_id' => $data['user_id'],'state' => 0];
$aCv = $this->user_cv_obj->field('user_cv_id')->where($aWhere)->find();