From 83a1d34b2c2e5c96b6ee369e5806e609eb9dac41 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Mon, 3 Aug 2020 15:49:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/ExportController.class.php | 7 ++----- .../Admin/Controller/FinanceController.class.php | 10 ++++------ 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index a71ccb7af..069ed57ae 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -8320,11 +8320,8 @@ class ExportController extends Controller return false; }); - $gameSets = []; - if (count($gameIds) > 0) { - $gameSets = M('game_set', 'tab_')->field(['game_id', 'pay_notify_url'])->where(['game_id' => ['in', $gameIds]])->select(); - $gameSets = index_by_column('game_id', $gameSets); - } + $gameSets = M('game_set', 'tab_')->field(['game_id', 'pay_notify_url'])->where(['game_id' => ['in', $gameIds]])->select(); + $gameSets = index_by_column('game_id', $gameSets); $searchGameCodes = []; if (count($searchGameIds) > 0) { diff --git a/Application/Admin/Controller/FinanceController.class.php b/Application/Admin/Controller/FinanceController.class.php index ab1fee944..6bd50aa47 100644 --- a/Application/Admin/Controller/FinanceController.class.php +++ b/Application/Admin/Controller/FinanceController.class.php @@ -748,17 +748,15 @@ class FinanceController extends ThinkController return false; }); - $gameSets = []; - if (count($gameIds) > 0) { - $gameSets = M('game_set', 'tab_')->field(['game_id', 'pay_notify_url'])->where(['game_id' => ['in', $gameIds]])->select(); - $gameSets = index_by_column('game_id', $gameSets); - } - + $gameSets = M('game_set', 'tab_')->field(['game_id', 'pay_notify_url'])->select(); + $gameSets = index_by_column('game_id', $gameSets); + $searchGameCodes = []; if (count($searchGameIds) > 0) { $searchGameCodes = M('game', 'tab_')->where(['id' => ['in', $searchGameIds], 'unique_code' => ['neq', '']])->getField('unique_code', true); $searchGameCodes = array_unique($searchGameCodes); } + var_dump($gameSets);die(); $client = new AggregateClient(); $result = $client->api('game-data', [