From fc2b3fc7e437154d26868b62d9025119e198f69f Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Sat, 20 Jan 2024 17:52:41 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=94=A8=E6=88=B7=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/UserLogic.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/api/logic/UserLogic.php b/app/api/logic/UserLogic.php index 7eeeff0c..0534d7af 100644 --- a/app/api/logic/UserLogic.php +++ b/app/api/logic/UserLogic.php @@ -95,14 +95,11 @@ class UserLogic extends BaseLogic $name=DictData::where('id',$data['company']['company_type'])->value('name'); $data['company']['company_type_name']=$name; } - if (date('Y-m-d', strtotime($data['update_time'])) == date('Y-m-d', time())) { - } else { - $inviteUserStatistics = ShopRequestLogic::getInviteUserInfo(['promotion_code' => $data['invite_code']]); - $data['register_num'] = $inviteUserStatistics['data']['user_count']; - $data['merchant_num'] = $inviteUserStatistics['data']['merchant_count']; - $data['trade_amount'] = $inviteUserStatistics['data']['trade_amount']; - } + $inviteUserStatistics = ShopRequestLogic::getInviteUserInfo(['promotion_code' => $data['invite_code']]); + $data['register_num'] = $inviteUserStatistics['data']['user_count']; +// $data['merchant_num'] = $inviteUserStatistics['data']['merchant_count']; + $data['trade_amount'] = Db::name('user_invite_first_order_log')->where('user_id', $userId)->sum('order_money'); return $data ; }