Commit a519f355 authored by shajiaiming's avatar shajiaiming

fix

parent feae3b6b
......@@ -42,9 +42,14 @@ class NoticeController extends BaseController
}
if (Yii::$app->request->isGet) {
if (User::AUTH_SUPER == $group) {
$platform_id = Yii::$app->request->get('platform_id', Yii::$app->request->getPlatformId());
} else {
$platform_id = Yii::$app->request->getPlatformId();
}
$status = Yii::$app->request->get('status', 0);
$type = Yii::$app->request->get('type', 0);
$query = Notice::find()->select('id, title, type, create_time')->where(['platform_id' => $platform_id])->asArray();
$query = Notice::find()->where(['platform_id' => $platform_id]);
if (false != $status) {
$query->andWhere(['status' => (int)$status]);
......
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