Commit 907b6142 authored by shajiaiming's avatar shajiaiming

fi

parent b15e5f1e
......@@ -44,9 +44,9 @@ class NoticeController extends BaseController
$size = \Yii::$app->request->get('size', 10);
$query = Notice::find()
->select('id, title, author, type, create_at')
->select('id, title, author, type, create_time')
->where(['status' => Notice::STATUS_ON])
->orderBy('create_at desc');
->orderBy('create_time desc');
if (false != $type) {
$query->andWhere(['type' => (int)$type]);
......@@ -90,7 +90,7 @@ class NoticeController extends BaseController
goto doEnd;
}
$data = Notice::find()->select('title,content,author,type,create_at')->where(['id' => $id, 'platform_id' => $platform_id])->asArray()->one();
$data = Notice::find()->select('title,content,author,type,create_time')->where(['id' => $id, 'platform_id' => $platform_id])->asArray()->one();
$msg = 'ok';
$code = 0;
......
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