From fdece3e6e000845e9007c526689cb9df877c9588 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 18 Jul 2024 17:36:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(IndexController):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=88=90=E4=BA=A4=E7=94=A8=E6=88=B7=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/statistics/controller/IndexController.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/statistics/controller/IndexController.php b/app/statistics/controller/IndexController.php index 5e1cf7134..cc804aa1d 100644 --- a/app/statistics/controller/IndexController.php +++ b/app/statistics/controller/IndexController.php @@ -159,12 +159,9 @@ class IndexController extends BaseLikeController // if (ProductLogic::hasError()) { // return $this->fail(ProductLogic::getError()); //获取错误信息并返回错误信息 // } - $select = Db::connect('demo')->name('store_order')->where($where); - if ($time) { - $select->whereDay('create_time', $time); - } - $res = $select->limit(20)->order('id desc')->field('id,order_id,pay_price,create_time')->select()->toArray(); - return $this->success('ok', $res); + $select = Db::connect('demo')->name('store_order')->where($where)->limit(20)->order('id desc') + ->field('id,order_id,pay_price,create_time')->select()->toArray(); + return $this->success('ok', $select); } /** * 成交用户数据