Withdraw.php 770 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\api\validate\service;
  3. use think\Validate;
  4. class Withdraw 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. 'type.require' => '请提交提现金额来源',
  14. 'withdrawtype.require' => '请选择正确提现方式',
  15. 'withdrawtype.in' => '请选择正确提现方式',
  16. 'num.number' => '提现金额必须是数字',
  17. ];
  18. protected $scene = [
  19. 'add' => ['type','num','withdrawtype'],
  20. ];
  21. }