Commit df11f82f authored by shajiaiming's avatar shajiaiming

fix

parent ff4fc2db
...@@ -44,8 +44,9 @@ class NoticeController extends BaseController ...@@ -44,8 +44,9 @@ class NoticeController extends BaseController
$size = \Yii::$app->request->get('size', 10); $size = \Yii::$app->request->get('size', 10);
$query = Notice::find() $query = Notice::find()
->select('id, title, content, author, type, is_top, create_time') ->select('id, title, content, author, type, is_top, create_time, update_time')
->where(['status' => Notice::STATUS_ON, 'platform_id' => (int)$platform_id]) ->where(['status' => Notice::STATUS_ON, 'platform_id' => (int)$platform_id])
->groupBy('title')
->orderBy('create_time desc'); ->orderBy('create_time desc');
if (false != $type) { if (false != $type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment