From ef8d16fc6e88df10350273f8d1f05c939b868e11 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 29 Jun 2020 18:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=91=98=E5=85=85=E5=80=BC?= =?UTF-8?q?=E6=8D=A2=E6=A6=9C=E5=AE=9A=E6=97=B6=E5=99=A8=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/TimingController.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Application/Admin/Controller/TimingController.class.php b/Application/Admin/Controller/TimingController.class.php index e12f7b5af..c7bbd2ef9 100644 --- a/Application/Admin/Controller/TimingController.class.php +++ b/Application/Admin/Controller/TimingController.class.php @@ -622,6 +622,11 @@ class TimingController extends AdminController { $promote_data=array_unique($promote_data); sort($promote_data); + if(!$promote_data) { + echo "没有数据"; + die(); + } + $chain_data = M("promote","tab_") ->field("id") ->where(['chain'=>'/','id'=>['in',$promote_data]])