From 49664ea7993dde81d96fe9e5f332a4004ce863b1 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 12 Jan 2024 11:41:54 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=96=B0=E4=BE=9B=E9=94=80=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E9=82=80=E8=AF=B7=E4=BF=A1=E6=81=AF=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Statistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index c4b91a7f..169d1196 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -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();