input('newsId'), 'content'=>trim(input('content')), 'user_id'=>$this->userId, 'enable'=>1, 'create_time'=>date('y-m-d h:i:s'), 'news_reply_id'=>input('replyId') ]; if(!$data['content']){ HelpHander::error('回复消息不能为空'); } $ret=Db::name('news_reply') ->insert($data); if($ret){ HelpHander::success([],'回复成功'); }else{ HelpHander::error('回复失败'); } } public function delReplay(){ $id=input('id'); $data=['del'=>1]; $ret=Db::name('news_reply') ->where('id',$id) ->where('user_id',$this->userId) ->update($data); if($ret){ HelpHander::success([],'删除成功'); }else{ HelpHander::error('删除失败'); } } }