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,