From 9811e47f7e60afca38782e0f8ae88c73500121f8 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 18 Jul 2024 17:37:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(IndexController):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=85=85=E5=80=BC=E6=9F=A5=E8=AF=A2=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E7=A7=BB=E9=99=A4=E6=97=B6=E9=97=B4=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/statistics/controller/IndexController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/statistics/controller/IndexController.php b/app/statistics/controller/IndexController.php index cc804aa1d..269e9288f 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)->whereTime('create_time', $time)->select()->each(function ($item) { + $res = Db::connect('demo')->name('user_recharge')->where($where)->select()->each(function ($item) { if ($item['uid']) { $item['nickname'] = User::where('id', $item['uid'])->value('nickname'); } else { @@ -151,7 +151,7 @@ class IndexController extends BaseLikeController { $time = $this->request->get('date'); $store_id = $this->request->get('store_id', 0); - $where = ['paid','=',1]; + $where['paid'] = 1; if ($store_id) { $where['store_id'] = $store_id; }