|
@@ -10,7 +10,7 @@ class Goods extends Validate
|
|
|
* 验证规则
|
|
|
*/
|
|
|
protected $rule = [
|
|
|
- 'orderby' => 'in:weigh,sales,price,views,comments',
|
|
|
+ 'orderby' => 'in:weigh,sales,price,views,comments,created_at',
|
|
|
'orderway' => 'in:asc,desc',
|
|
|
'pageSize' => 'integer|between:1,100',
|
|
|
'page' => 'integer|between:1,100',
|