From 390f22894a560dbdb07b65013fec2664f60abd81 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Tue, 26 Nov 2019 17:18:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=90=E7=BB=B4=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/ConsoleController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/ConsoleController.class.php b/Application/Admin/Controller/ConsoleController.class.php index e355f61b9..9238a73b4 100644 --- a/Application/Admin/Controller/ConsoleController.class.php +++ b/Application/Admin/Controller/ConsoleController.class.php @@ -135,7 +135,7 @@ class ConsoleController extends Think { } } - public function doDeleteRepeatUserPlayInfo() + public function doDeleteRepeatUserPlayInfo($gameId) { $sql = 'select id from tab_user_play_info a left join ( select role_id, server_id, game_id, count(1) from tab_user_play_info where server_id="' . $serverId . '" and game_id = ' . $gameId . ' GROUP BY role_id, server_id, game_id, server_name having count(1) > 1 @@ -185,11 +185,11 @@ class ConsoleController extends Think { { $gameIds = [157, 148, 150, 151, 158, 175, 142, 143, 172, 173, 154, 155, 176, 165, 164, 179, 156, 153]; foreach ($gameIds as $gameId) { - $this->doDeleteRepeatUserPlayInfo2(); + $this->doDeleteRepeatUserPlayInfo2($gameId); } } - public function doDeleteRepeatUserPlayInfo2() + public function doDeleteRepeatUserPlayInfo2($gameId) { $sql = 'select id from tab_user_play_info a left join ( select role_id, server_id, game_id, count(1) from tab_user_play_info where server_id="' . $serverId . '" and game_id = ' . $gameId . ' GROUP BY role_id, server_id, game_id, server_name having count(1) > 1