From fdfae0e339863d0afd225a4964cfef82e1324cee Mon Sep 17 00:00:00 2001 From: limu <123456> Date: Fri, 19 Jan 2024 13:06:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/user/User.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controller/api/user/User.php b/app/controller/api/user/User.php index a19f21a..4dbbf0d 100644 --- a/app/controller/api/user/User.php +++ b/app/controller/api/user/User.php @@ -345,6 +345,11 @@ class User extends BaseController $b = $a->phone; } $data['spread_phone'] = $b ?? ''; + if(!empty($data['spread_uid2'])){ + $c = userModel::getDB()->where('uid',$data['spread_uid'])->find(); + $d = $c->phone; + } + $data['spread_phone2'] = $d ?? ''; return app('json')->success($data); }