From f7ae9e2faf086f4d08d99225b0c9e302ffcc624b Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 12 Jan 2024 11:27:50 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=94=A8=E6=88=B7=E9=82=80=E8=AF=B7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/UserLogic.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/api/logic/UserLogic.php b/app/api/logic/UserLogic.php index 99d064ae..821d8892 100644 --- a/app/api/logic/UserLogic.php +++ b/app/api/logic/UserLogic.php @@ -83,7 +83,6 @@ class UserLogic extends BaseLogic $userRole = UserRole::where(['id' => $data['group_id']])->find(); return $userRole ? $userRole['name'] : '普通用户'; }) - ->field('id,sn,sex,is_new_user,account,nickname,real_name,avatar,mobile,create_time,user_money,deposit,income,admin_id,company_id,is_captain,province,province province_name,city,city city_name,area,area area_name,street,street street_name,village,village village_name,brigade,brigade brigade_name, group_id, deposit, deposit_date, user_information_count, register_num, merchant_num, trade_amount, invite_code') ->findOrEmpty(); // $user['avatar'] = $user['avatar'] ? Request()->host() . $user['avatar'] : $user['avatar']; $user['day_money_count']=UserAccountLog::where(['user_id'=>$userId,'action'=>1])->whereDay('create_time')->sum('change_amount'); @@ -97,7 +96,9 @@ class UserLogic extends BaseLogic $data['company']['company_type_name']=$name; } $inviteUserStatistics = ShopRequestLogic::getInviteUserInfo(['promotion_code' => $data['invite_code']]); - $data['register_num'] = $inviteUserStatistics['data']; + $data['register_num'] = $inviteUserStatistics['data']['user_count']; + $data['merchant_num'] = $inviteUserStatistics['data']['merchant_count']; + $data['trade_amount'] = $inviteUserStatistics['data']['trade_amount']; return $data ; }