GameDiscountV2.php 536 B

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