From 9228fcf4b8ab26785e2e4b3a64a8cb5b4a39ab40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?k=E5=85=88=E6=A3=AE?= <76847132@qq.com> Date: Wed, 19 Jun 2019 14:27:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E6=8F=90=E4=BA=A4Ad?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=20=E6=8F=90=E4=BA=A4Ad?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Ad.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/controller/Ad.php b/application/admin/controller/Ad.php index 27eff1a1..34c99cb3 100644 --- a/application/admin/controller/Ad.php +++ b/application/admin/controller/Ad.php @@ -51,7 +51,7 @@ class Ad extends Admin { $place = model('AdPlace'); if ($this->request->isPost()) { $result = $place->change(); - if (false !== false) { + if ($result) { return $this->success("添加成功!"); } else { return $this->error($place->getError());