修正返回地址

This commit is contained in:
liyukun 2021-12-27 23:55:04 +08:00
parent 8d4933383f
commit c1eb5d5101
2 changed files with 2 additions and 2 deletions

View File

@ -661,7 +661,7 @@ function tpl_get_comment_list($id, $type, $pageSize = 10, $orderBy)
$commentModel = \app\common\model\Comment::where('status', 1)->order($orderBy);
switch ($type) {
case 'top':
//根据自定义条件获取文章where语句
//获取所有的一级评论
$commentModel = $commentModel->where('document_id', $id)->where('pid', 0);
break;
case 'son':

View File

@ -191,7 +191,7 @@ class Article extends Base
$data['status'] = web_config('comment_review')?0:1;
$res = commentModel::create($data);
if ($res) {
$this->success('提交成功');
$this->success('提交成功',url('detail',['id'=>$data['document_id']]));
} else {
$this->error('提交失败,请联系站长查看', null);
}