测试:bug处理
This commit is contained in:
@@ -304,6 +304,17 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
|
||||
if (in_array($user_id, $gift_user_ids)) {
|
||||
return ['code' => 0, 'msg' => "收礼人不能包含自己", 'data' => null];
|
||||
}
|
||||
foreach ($gift_user_ids as $gift_user_id){
|
||||
//查询是否实名认证
|
||||
$is_real = model('UserData')->real_name_info($gift_user_id);
|
||||
if($is_real['code']==0){
|
||||
return ['code' => 0, 'msg' => '收礼用户中有未实名,暂不支持收礼', 'data' => null];
|
||||
}else{
|
||||
if($is_real['data']['is_real'] !=1){
|
||||
return ['code' => 0, 'msg' => '收礼用户中有未实名,暂不支持收礼', 'data' => null];
|
||||
}
|
||||
}
|
||||
}
|
||||
// 验证用户ID
|
||||
if (empty($user_id)) {
|
||||
return ['code' => 0, 'msg' => '用户ID不能为空', 'data' => null];
|
||||
|
||||
Reference in New Issue
Block a user