|
@@ -1197,7 +1197,7 @@ class User extends Api
|
|
|
|
|
|
$user_id = $this->auth->id;
|
|
|
$is_fate = \app\common\model\User::getIsView($fate_user_id,$user_id);
|
|
|
-// if(!$is_fate) $this->error('您需要先获取微信号才能添加标签');
|
|
|
+ if(!$is_fate) $this->error('您需要先获取微信号才能添加标签');
|
|
|
$tag_user_log = \app\common\model\TagUserLog::where(['user_id'=>$user_id,'fate_user_id'=>$fate_user_id,'tag_id'=>$tag_id])->find();
|
|
|
if($tag_user_log) {
|
|
|
$this->error('您已经为ta添加过此标签了');
|