From 6012fdbdf134c095dec6f47f9cd79ed4daf692d5 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Mon, 13 Jan 2020 15:08:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E4=BC=9A=E5=88=86=E6=88=90=E7=AE=A1?= =?UTF-8?q?=E7=90=86--=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/PromoteGameRatioController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/PromoteGameRatioController.class.php b/Application/Admin/Controller/PromoteGameRatioController.class.php index 52cfb98d6..0d08c400c 100644 --- a/Application/Admin/Controller/PromoteGameRatioController.class.php +++ b/Application/Admin/Controller/PromoteGameRatioController.class.php @@ -380,9 +380,9 @@ class PromoteGameRatioController extends ThinkController $model = new PromoteGameRatioModel(); foreach ($ids as $id) { $model->addLog($id); - $promoteGameRatio = D(self::MODEL_NAME)->find($id); - if (!empty($promoteGameRatio)) { - if ($status == 1) { + if ($status == 1) { + $promoteGameRatio = D(self::MODEL_NAME)->find($id); + if (!empty($promoteGameRatio)) { if ($promoteGameRatio['begin_time'] <= strtotime(date('Y-m-d', time()))) { $promoteId = $promoteGameRatio['promote_id']; $promoteMap['chain'] = ['like', "/{$promoteId}/%"];