|
@@ -193,10 +193,11 @@ class Topicdongtai extends Api
|
|
|
//话题少一个贴
|
|
|
if (!empty($dongtai['topic_ids'])) {
|
|
|
$res = Db::name('topic_hub')->where('id','IN',$dongtai['topic_ids'])->setDec('t_number');
|
|
|
+ /*话题可能被删掉了,这里不判断了
|
|
|
if (!$res) {
|
|
|
Db::rollback();
|
|
|
$this->error('更新话题数量失败');
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
//删除对应的评论,
|
|
|
Db::name('topic_dongtai_answer')->where('dt_id',$id)->delete();
|