From 12a55a13a47e5460981787e279f916ec3b2d8c8a Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Tue, 15 Mar 2022 14:16:31 +0800 Subject: [PATCH] setter --- app/controller/api/User.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controller/api/User.php b/app/controller/api/User.php index 7c9fd42..9ffdbc7 100644 --- a/app/controller/api/User.php +++ b/app/controller/api/User.php @@ -171,6 +171,7 @@ class User extends Base $businessRes = [ 'avatar' => File::convertCompleteFileUrl($account['avatar_url']), 'nickName' => $account['nick_name'], + 'user_code' => $account['user_code'], 'userType' => $account['type'], 'userTypeDes' => Account::accountTypeDescList()[$account['type']] ?? '游客', 'couponCount' => 0, @@ -195,6 +196,7 @@ class User extends Base $personalRes = [ 'avatar' => File::convertCompleteFileUrl($account['avatar_url']), 'nickName' => $account['nick_name'], + 'user_code' => $account['user_code'], 'userType' => $account['type'], 'userTypeDes' => Account::accountTypeDescList()[$account['type']] ?? '游客', 'couponCount' => $couponCount,