update 用户首页

This commit is contained in:
chenbo 2024-01-20 17:52:41 +08:00
parent ad57a58001
commit fc2b3fc7e4
1 changed files with 4 additions and 7 deletions

View File

@ -95,14 +95,11 @@ class UserLogic extends BaseLogic
$name=DictData::where('id',$data['company']['company_type'])->value('name'); $name=DictData::where('id',$data['company']['company_type'])->value('name');
$data['company']['company_type_name']=$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']]); $inviteUserStatistics = ShopRequestLogic::getInviteUserInfo(['promotion_code' => $data['invite_code']]);
$data['register_num'] = $inviteUserStatistics['data']['user_count']; $data['register_num'] = $inviteUserStatistics['data']['user_count'];
$data['merchant_num'] = $inviteUserStatistics['data']['merchant_count']; // $data['merchant_num'] = $inviteUserStatistics['data']['merchant_count'];
$data['trade_amount'] = $inviteUserStatistics['data']['trade_amount']; $data['trade_amount'] = Db::name('user_invite_first_order_log')->where('user_id', $userId)->sum('order_money');
}
return $data ; return $data ;
} }