Commit 887ed048 authored by zhuwei's avatar zhuwei

bug

parent 7f5821ee
<?php
namespace app\api_broker\validate;
use think\Validate;
/**
* Created by PhpStorm.
* User: zhuwei
* Date: 2018/8/7
* Time: 13:54:12
*/
class UserGetLastOrNextUserIdValidate extends Validate{
protected $rule = [
'type' => 'require',
'agent_id' => 'require|number|gt:0',
'id' => 'require|number|gt:0'
];
protected $message = [
'type.require' => '网络异常!错误代码:uv1',//type为必填字段
'agent_id.require' => 'agent_id为必填字段',//agent_id为必填字段
'agent_id.number' => '网络异常!错误代码:uv4',//agent_id只能为数字
'agent_id.gt' => '网络异常!错误代码:uv5',//agent_id必须大于0
'id.require' => 'id为必填字段',//user_id为必填字段
'id.number' => '网络异常!错误代码:uv7',//user_id只能为数字
'id.gt' => '网络异常!错误代码:uv8',//user_id必须大于0
];
protected $scene = [
'add_phone_follow_up_verify' => [ 'id', 'agent_id', 'type'],
];
}
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