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); }