From cbfdbe7b81848935b13bcf7f9ce7961f670cb1d7 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 18 Jul 2024 17:41:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(IndexController):=20=E9=99=90=E5=88=B6?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=85=85=E5=80=BC=E6=9F=A5=E8=AF=A2=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=95=B0=E9=87=8F=E4=B8=BA20=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/statistics/controller/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/statistics/controller/IndexController.php b/app/statistics/controller/IndexController.php index ecab0ccf..d7f0eba3 100644 --- a/app/statistics/controller/IndexController.php +++ b/app/statistics/controller/IndexController.php @@ -135,7 +135,7 @@ class IndexController extends BaseLikeController // if (ProductLogic::hasError()) { // return $this->fail(ProductLogic::getError()); //获取错误信息并返回错误信息 // } - $res = Db::connect('demo')->name('user_recharge')->where($where)->select()->each(function ($item) { + $res = Db::connect('demo')->name('user_recharge')->where($where)->limit(20)->select()->each(function ($item) { if ($item['uid']) { $item['nickname'] = User::where('id', $item['uid'])->value('nickname'); } else {