From 20108bc9dfae90f1b5dd0b67d9f85926eb176392 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 5 May 2017 16:05:34 +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=B7=BB=E5=8A=A0=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Tags.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/application/wechat/controller/Tags.php b/application/wechat/controller/Tags.php index dec85a77c..978029e06 100644 --- a/application/wechat/controller/Tags.php +++ b/application/wechat/controller/Tags.php @@ -66,8 +66,8 @@ class Tags extends BasicAdmin { $this->error("添加粉丝标签失败. {$wechat->errMsg}[{$wechat->errCode}]"); } $result['tag']['count'] = 0; - DataService::save($this->table, $result['tag'], 'id') && $this->success('添加粉丝标签成功!', ''); - $this->error('粉丝标签添加失败,请稍候再试!'); + DataService::save($this->table, $result['tag'], 'id') && $this->success('添加粉丝标签成功!', ''); + $this->error('粉丝标签添加失败, 请稍候再试!'); } /** @@ -83,16 +83,16 @@ class Tags extends BasicAdmin { $info = Db::name($this->table)->where('name', $name)->find(); if (!empty($info)) { if (intval($info['id']) === intval($id)) { - $this->error('粉丝标签名没有改变,无需修改!'); + $this->error('粉丝标签名没有改变, 无需修改!'); } - $this->error('标签已经存在,请使用其它名称再试!'); + $this->error('标签已经存在, 使用其它名称再试!'); } $wechat = &load_wechat('User'); $data = ['id' => $id, 'name' => $name]; if (false !== $wechat->updateTag($id, $name) && false !== DataService::save($this->table, $data, 'id')) { $this->success('编辑标签成功!', ''); } - $this->error('编辑标签失败,请稍后再试!' . $wechat->errMsg); + $this->error('编辑标签失败, 请稍后再试!' . $wechat->errMsg); } /** @@ -102,9 +102,9 @@ class Tags extends BasicAdmin { Db::name($this->table)->where('1=1')->delete(); if (WechatService::syncFansTags()) { LogService::write('微信管理', '同步全部微信粉丝标签成功'); - $this->success('同步获取所有粉丝标签成功!', ''); + $this->success('同步获取所有粉丝标签成功!', ''); } - $this->error('同步获取粉丝标签失败,请稍候再试!'); + $this->error('同步获取粉丝标签失败, 请稍候再!'); } }