作者 何书鹏
1 个管道 的构建 通过 耗费 2 秒

bug修改

... ... @@ -408,9 +408,9 @@ class Topic extends Api
$good = TopicGood::get(['user_id'=>$this->auth->id,'topic_id'=>$topic_id]);
if(empty($good)){
TopicGood::create($where);
$this->success('点赞成功');
// 增加话题热力值(点赞+1热力值)
$info->setInc('hot_num');
$this->success('点赞成功');
}
$good->delete();
$this->success('取消点赞');
... ...