123456789101112131415161718192021222324 |
- <?php
- namespace app\common\validate;
- use think\Db;
- use think\Validate;
- class CarRecord extends Validate{
- protected $rule = [
- 'id' => 'require|gt:0',
- 'start|出车里程' => 'require|egt:0',
- 'end|交车里程' => 'require|egt:0|egt:start',
- ];
- protected $message = [
- 'id.require' => '参数错误',
- 'id.gt' => '参数错误',
- ];
- protected $scene = [
- ];
- }
|