From 8637a530907d60d74f44427a2b78b60c8ba1343c Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 3 May 2017 15:18:20 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E7=B2=89?= =?UTF-8?q?=E4=B8=9D=E6=A0=87=E7=AD=BE=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Tags.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/wechat/controller/Tags.php b/application/wechat/controller/Tags.php index e3df7febe..bfed7cc3d 100644 --- a/application/wechat/controller/Tags.php +++ b/application/wechat/controller/Tags.php @@ -73,14 +73,14 @@ class Tags extends BasicAdmin { $info = Db::name($this->table)->where('name', $name)->find(); if (!empty($info)) { if (intval($info['id']) === intval($id)) { - $this->success('粉丝标签没有改变!', ''); + $this->error('粉丝标签名没有改变,无需修改!'); } $this->error('标签已经存在,请使用其它名称再试!'); } $wechat = &load_wechat('User'); - $data = array('id' => $id, 'name' => $name); + $data = ['id' => $id, 'name' => $name]; if (false !== $wechat->updateTag($id, $name) && false !== DataService::save($this->table, $data, 'id')) { - $this->success('编辑标签成功!'); + $this->success('编辑标签成功!', ''); } $this->error('编辑标签失败,请稍后再试!' . $wechat->errMsg); }