作者 zhaozzwei

更新 CommentController.php

@@ -137,6 +137,7 @@ class CommentController extends AdminBaseController @@ -137,6 +137,7 @@ class CommentController extends AdminBaseController
137 $list = DB::name($this->table_name) 137 $list = DB::name($this->table_name)
138 ->alias('c') 138 ->alias('c')
139 ->join('qnb_user u','u.id=c.teach_id') 139 ->join('qnb_user u','u.id=c.teach_id')
  140 + ->order('create_time desc')
140 ->field('c.*') 141 ->field('c.*')
141 ->where($where) 142 ->where($where)
142 ->paginate(15); 143 ->paginate(15);
@@ -175,6 +176,7 @@ class CommentController extends AdminBaseController @@ -175,6 +176,7 @@ class CommentController extends AdminBaseController
175 ->alias('c') 176 ->alias('c')
176 ->join('qnb_user u','u.id=c.uid') 177 ->join('qnb_user u','u.id=c.uid')
177 ->field('c.*') 178 ->field('c.*')
  179 + ->order('create_time desc')
178 ->where(['c.delete_time'=>0]) 180 ->where(['c.delete_time'=>0])
179 ->paginate(15); 181 ->paginate(15);
180 182