bug修改
This commit is contained in:
@@ -347,27 +347,6 @@ class Tasks extends Model
|
||||
$user_daily_tasks = Db::name('vs_tasks_user_daily')->where('user_id',$user_id)->where('task_id',$task_id)->whereTime('createtime', 'today')->find();
|
||||
}else{
|
||||
if($task_info['task_type'] == 1){
|
||||
//查询是否实名认证
|
||||
$mobile = db::name('user')->where(['id' => $user_id,'status'=>1])->value('mobile');
|
||||
$is_real = db::name('user_auth')->where('mobile' , $mobile)->field('real_name,card_id,is_real,mobile')->find();
|
||||
if(empty($is_real)){
|
||||
return ['code' => 0, 'msg' => '请先实名认证','data' => null];
|
||||
}else{
|
||||
if($is_real['is_real'] !=1){
|
||||
return ['code' => 0, 'msg' => '请先实名认证','data' => null];
|
||||
}else{
|
||||
//查询同一个身份证下的 用户
|
||||
$user_auth_mobile = db::name('user_auth')->where(['card_id'=>$is_real['card_id']])->column('mobile');
|
||||
if(count($user_auth_mobile)>1){
|
||||
$user_ids = db::name('user')->whereIn('mobile',$user_auth_mobile)->column('id');
|
||||
}else{
|
||||
$user_ids = db::name('user')->where('mobile',$is_real['mobile'])->column('id');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//判断用户是否实名认证,并查询用户手机号下的用户
|
||||
$mobile = db::name('user')->where(['id' => $user_id,'status'=>1])->value('mobile');
|
||||
$is_real = db::name('user_auth')->where('mobile' , $mobile)->field('real_name,card_id,is_real,mobile')->find();
|
||||
|
||||
Reference in New Issue
Block a user