Commit 2af9cb47 authored by shajiaiming's avatar shajiaiming

fix

parent c6773ab9
......@@ -50,6 +50,9 @@ class NoticeController extends BaseController
if (false != $type) {
$query->andWhere(['type' => (int)$type]);
if (Notice::TOP_TRUE == (int)$type) {
$size = 1;
}
}
$countQuery = clone $query;
......
......@@ -35,9 +35,9 @@ class Notice extends BaseActiveRecord
return [
[['title', 'content', 'type', 'status', 'platform_id', 'author'], 'required'],
[['status', 'type', 'platform_id', 'is_top'], 'integer'],
['is_top', 'verfiyIsTop'],
['type', 'verfiyType'],
[['is_top'], 'safe']
//['is_top', 'verfiyIsTop'],
//['type', 'verfiyType'],
//[['is_top'], 'safe']
];
}
......
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