From 676359d9b1737e34bdd264b4895392bf3f5d366c Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Sun, 18 Sep 2022 11:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B5=84=E6=BA=90-=E5=AE=A1?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/TestingResourceController.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/TestingResourceController.class.php b/Application/Admin/Controller/TestingResourceController.class.php index 9614bb117..9b71cc830 100644 --- a/Application/Admin/Controller/TestingResourceController.class.php +++ b/Application/Admin/Controller/TestingResourceController.class.php @@ -799,23 +799,23 @@ class TestingResourceController extends ThinkController $createTimeStart = $params['create_time_start'] ?? ''; $createTimeEnd = $params['create_time_end'] ?? ''; $gameId = $params['game_id'] ?? 0; - $gameName = $params['gameName'] ?? 0; + $gameName = $params['game_name'] ?? ''; $conditions = []; $strCondition = '1=1'; if ($createTimeStart) { - $strCondition .= ' and create_time >=' . strtotime($createTimeStart . ' 00:00:00'); + $strCondition .= ' and create_time >="' . $createTimeStart . ' 00:00:00' . '"'; } if ($createTimeEnd) { - $strCondition .= ' and create_time <=' . strtotime($createTimeEnd . ' 23:59:59'); + $strCondition .= ' and create_time <="' . $createTimeEnd . ' 23:59:59' . '"'; } if ($gameId) { $conditions['game_id'] = $gameId; } if ($gameName) { - $conditions['gameName'] = $gameName; + $conditions['game_name'] = $gameName; } $conditions['_string'] = $strCondition;