...
|
...
|
@@ -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('取消点赞');
|
...
|
...
|
|