From 66ced8930e5bb93646e5cf277f8f6f85492215bc Mon Sep 17 00:00:00 2001 From: zyx Date: Mon, 21 Oct 2019 11:43:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5bug=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/PromoteController.class.php | 2 +- Application/Home/View/default/Promote/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Home/Controller/PromoteController.class.php b/Application/Home/Controller/PromoteController.class.php index fdcea7856..b3d44c9ff 100644 --- a/Application/Home/Controller/PromoteController.class.php +++ b/Application/Home/Controller/PromoteController.class.php @@ -315,7 +315,7 @@ class PromoteController extends BaseController )->delete(); $this->ajaxReturn(['status' => 1, 'info' => '移除成功'], "JSON"); } else { - $menuData = M("promote_quick_menu ", "tab_")->count(); + $menuData = M("promote_quick_menu ", "tab_")->where(array("promote_id" => get_pid()))->count(); if ($menuData>=10) { $this->ajaxReturn(['status' => 1, 'info' => '快捷菜单只能有10个'], "JSON"); diff --git a/Application/Home/View/default/Promote/index.html b/Application/Home/View/default/Promote/index.html index bbedcd85d..9650f0bfa 100644 --- a/Application/Home/View/default/Promote/index.html +++ b/Application/Home/View/default/Promote/index.html @@ -167,9 +167,9 @@ - + {$data.game_name} - 安卓、iOS安卓iOS + 安卓、iOS安卓iOS {$data.start_time|date="m-d H:i",###} {$data.server_name}