正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -408,9 +408,9 @@ class Topic extends Api | @@ -408,9 +408,9 @@ class Topic extends Api | ||
408 | $good = TopicGood::get(['user_id'=>$this->auth->id,'topic_id'=>$topic_id]); | 408 | $good = TopicGood::get(['user_id'=>$this->auth->id,'topic_id'=>$topic_id]); |
409 | if(empty($good)){ | 409 | if(empty($good)){ |
410 | TopicGood::create($where); | 410 | TopicGood::create($where); |
411 | - $this->success('点赞成功'); | ||
412 | // 增加话题热力值(点赞+1热力值) | 411 | // 增加话题热力值(点赞+1热力值) |
413 | $info->setInc('hot_num'); | 412 | $info->setInc('hot_num'); |
413 | + $this->success('点赞成功'); | ||
414 | } | 414 | } |
415 | $good->delete(); | 415 | $good->delete(); |
416 | $this->success('取消点赞'); | 416 | $this->success('取消点赞'); |
-
请 注册 或 登录 后发表评论