update 用户首页
This commit is contained in:
parent
ad57a58001
commit
fc2b3fc7e4
|
@ -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'];
|
||||
}
|
||||
// $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 ;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue