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

bug修改

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