init commit
This commit is contained in:
39
application/api/validate/wdsxh/points/Order.php
Normal file
39
application/api/validate/wdsxh/points/Order.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 麦沃德科技赋能开发者,助力中小企业发展
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2017~2024 www.wdadmin.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Wdadmin系统产品软件并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: MY WORLD Team <bd@maiwd.cn> www.wdadmin.cn
|
||||
// +----------------------------------------------------------------------
|
||||
namespace app\api\validate\wdsxh\points;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class Order extends Validate
|
||||
{
|
||||
/**
|
||||
* 验证规则
|
||||
*/
|
||||
protected $rule = [
|
||||
'goods_id'=>'require',
|
||||
'address_id'=>'require',
|
||||
'number'=>'require',
|
||||
];
|
||||
/**
|
||||
* 提示消息
|
||||
*/
|
||||
protected $message = [
|
||||
'goods_id.require'=>'商品id不能为空',
|
||||
'address_id.require'=>'请选择地址',
|
||||
'number.require'=>'兑换数量不能为空',
|
||||
];
|
||||
/**
|
||||
* 验证场景
|
||||
*/
|
||||
protected $scene = [
|
||||
'submitSettlement' => ['goods_id','address_id','number'],
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user