mirror of https://github.com/1099438829/apeblog
修正返回地址
This commit is contained in:
parent
8d4933383f
commit
c1eb5d5101
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue