申请青年编委,增加对已经是的人,阻止申请
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user