测试:bug处理

This commit is contained in:
2026-01-13 15:47:19 +08:00
parent a6ac190358
commit 4d528e0e72
3 changed files with 25 additions and 4 deletions

View File

@@ -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];