add 新供销用户邀请信息统计

This commit is contained in:
chenbo 2024-01-12 11:41:54 +08:00
parent 5eae62ce24
commit 49664ea799

View File

@ -499,7 +499,7 @@ class Statistics extends BaseController
// 用户注册数
$datas['user_count'] = Db::name('user')->where('promotion_code', $promotionCode)->count();
$userIds = Db::name('user')->where('promotion_code', $promotionCode)->value('uid');
$userIds = Db::name('user')->where('promotion_code', $promotionCode)->column('uid');
// 商户数
$datas['merchant_count'] = Merchant::whereIn('uid', $userIds)->count();