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); }