From 0d2bdb5f1812b16bcc45ec375ee24ae5e7d06f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Tue, 30 Dec 2025 18:34:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E7=A4=BC=E7=94=A8=E6=88=B7=E5=BF=85?= =?UTF-8?q?=E9=A1=BB=E5=AE=9E=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/GiveGift.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/application/api/model/GiveGift.php b/application/api/model/GiveGift.php index 64b598e4..5eac6f0c 100644 --- a/application/api/model/GiveGift.php +++ b/application/api/model/GiveGift.php @@ -67,6 +67,19 @@ class GiveGift extends Model return ['code' => 301, 'msg' => '当前用户登录失效', 'data' => null]; } + //循环查询用户是否实名 + foreach ($toarray as $key => $value){ + $mobile = Db::name('user')->where(['id'=>$value])->value('mobile'); + $is_real = db::name('user_auth')->where('mobile' , $mobile)->field('id,is_real')->find(); + if($is_real){ + if($is_real['is_real'] != 1){ + return ['code' => 0, 'msg' => '收礼用户中有未实名', 'data' => null]; + } + }else{ + return ['code' => 0, 'msg' => '收礼用户中有未实名', 'data' => null]; + } + } + //获取送礼用户昵称 $FromUserInfo = db::name('user')->where('id',$uid)->field('id as user_id,nickname,avatar,sex')->find(); $FromUserInfo['icon'][0] = model('UserData')->user_wealth_icon($uid);//财富图标