DisWithdraw.php 702 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\api\validate\service;
  3. use think\Validate;
  4. class DisWithdraw extends Validate
  5. {
  6. protected $rule = [
  7. 'num' => 'require|number',
  8. 'withdrawtype' => 'require|in:0,1',
  9. 'type' => 'require',
  10. ];
  11. protected $message = [
  12. 'num.require' => '请选择提现余额',
  13. 'withdrawtype.require' => '请选择正确提现方式',
  14. 'withdrawtype.in' => '请选择正确提现方式',
  15. 'num.number' => '提现金额必须是数字',
  16. ];
  17. protected $scene = [
  18. 'add' => ['type','num','withdrawtype'],
  19. ];
  20. }