You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.5 KiB
44 lines
1.5 KiB
<?php
|
|
|
|
namespace app\admin\validate;
|
|
|
|
class RechargeValidate extends AdminBaseValidate
|
|
{
|
|
protected $rule = [
|
|
'page' => 'require|integer',
|
|
'limit' => 'require|integer',
|
|
'check_status' => 'require|integer',
|
|
'is_online' => 'require|integer',
|
|
'id' => 'require|integer',
|
|
'order_id' => 'alphaNum',
|
|
'user_no' => 'alphaNum',
|
|
'start_time' => 'date|dateFormat:Y-m-d H:i:s',
|
|
'end_time' => 'date|dateFormat:Y-m-d H:i:s',
|
|
];
|
|
|
|
protected $message = [
|
|
'is_online.require' => '支付类型无效',
|
|
'is_online.integer' => '支付类型无效',
|
|
'id.require' => 'ID参数无效',
|
|
'id.integer' => 'ID参数无效',
|
|
'check_status.require' => '审核状态无效',
|
|
'check_status.integer' => '审核无效',
|
|
'page.require' => '分页参数无效',
|
|
'page.integer' => '分页参数无效',
|
|
'limit.require' => '分页参数无效',
|
|
'limit.integer' => '分页参数无效',
|
|
'order_id.alphaNum' => '订单号无效',
|
|
'user_no.alphaNum' => '用户号无效',
|
|
'start_time.date' => '搜索日期无效',
|
|
'start_time.dateFormat' => '搜索日期无效',
|
|
'end_time.date' => '搜索日期无效',
|
|
'end_time.dateFormat' => '搜索日期无效',
|
|
];
|
|
|
|
protected $scene = [
|
|
// 现货
|
|
'index' => ['page','limit','order_id', 'user_no', 'start_time', 'end_time','is_online'],
|
|
'info' => ['id'],
|
|
'check' => ['id','check_status'],
|
|
];
|
|
}
|