From ffcc499cceebecf6179ecae99eef8c6d5e62cbdc Mon Sep 17 00:00:00 2001 From: limu <610543851@qq.com> Date: Mon, 22 Jan 2024 20:06:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=9B=B4=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/user/User.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controller/api/user/User.php b/app/controller/api/user/User.php index a5fb6d9..7424c68 100644 --- a/app/controller/api/user/User.php +++ b/app/controller/api/user/User.php @@ -360,7 +360,7 @@ class User extends BaseController $card = $this->request->param('card') ?? ''; $spread_phone = $this->request->param('spread_phone') ?? ''; $real_name = $this->request->param('real_name') ?? ''; - $spread_uid2 = $this->request->param('spread_uid2') ?? ''; + $spread_phone2 = $this->request->param('spread_phone2') ?? ''; $user = userModel::getDB()->where('uid',$this->user->uid)->find(); if(!empty($age)){ @@ -386,8 +386,8 @@ class User extends BaseController } $user->spread_uid = $a->uid; } - if(!empty($spread_uid2)){ - $b = userModel::getDB()->where('phone',$spread_uid2)->find(); + if(!empty($spread_phone2)){ + $b = userModel::getDB()->where('phone',$spread_phone2)->find(); if(!$b){ return app('json')->fail('查无此推荐人'); }