caipan_shop_admin/app/validate/Auction.php

18 lines
342 B
PHP
Executable File

<?php
namespace app\validate;
use think\Validate;
class Auction extends Validate
{
protected $rule = [
'id|ID' => 'require',
'price|价格' => 'require|number',
];
protected $scene = [
'fetch_auction_log' => ['id'], //获取竞拍记录
'offer' => ['id', 'price'], //获取竞拍记录
];
}