| 123456789101112131415161718 |
- <?php
- namespace app\admin\validate;
- use app\common\library\ValidateExtend;
- class GameDiscountV2 extends ValidateExtend
- {
- protected $rule = [
- 'game_id|游戏名称 ' => 'require|isEmpty|unique:cy_game_pay_discount',
- 'proportion|折扣比例 ' => 'require|between:0.001,1|isEmpty',
- ];
- protected $message = [
- 'game_id.isEmpty' => '游戏名称不能为空',
- 'url.isEmpty' => '折扣比例不能为空',
- 'url.between' => '折扣比例范围有误(仅限:0.001~1)',
- ];
- }
|