12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace app\common\validate;
- use think\Validate;
- /**
- * ============================================================================
- *
- * ============================================================================
- * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
- * 网站地址: https://www.valimart.net/
- * ----------------------------------------------------------------------------
- *
- * ============================================================================
- * 验证器
- */
- class Promotionbundling extends Validate
- {
- protected $rule = [
- 'promotion_bundling_price'=>'require|number|egt:0',
- 'promotion_bundling_sum'=>'require|number',
- 'promotion_bundling_goods_sum'=>'require|number'
- ];
- protected $message = [
- 'promotion_bundling_price.require'=>'不能为空,且不小于0的整数',
- 'promotion_bundling_price.number'=>'不能为空,且不小于0的整数',
- 'promotion_bundling_price.egt'=>'不能为空,且不小于0的整数',
- 'promotion_bundling_sum.require'=>'不能为空,且不小于0的整数',
- 'promotion_bundling_sum.number'=>'不能为空,且不小于0的整数',
- 'promotion_bundling_goods_sum.require'=>'不能为空,且为1到5之间的整数,包括1和5',
- 'promotion_bundling_goods_sum.number'=>'不能为空,且为1到5之间的整数,包括1和5'
- ];
- protected $scene = [
- 'bundling_setting' => ['promotion_bundling_price', 'promotion_bundling_sum', 'promotion_bundling_goods_sum'],
- ];
- }
|