Mch.php 914 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * 普通商户
  4. */
  5. namespace app\allwin\validate;
  6. use think\Validate;
  7. class Mch extends Validate{
  8. protected $rule = [
  9. 'openid' => 'require',
  10. 'mchid' => 'require|integer',
  11. 'name' => 'require',
  12. 'total_fee' => 'require|integer',
  13. 'order_no' => 'require',
  14. 'publickey' => 'require',
  15. 'sign' => 'require',
  16. ];
  17. protected $message = [
  18. 'openid' => 'openid不能为空',
  19. 'mchid' => '商户ID不能为空',
  20. 'name' => '标题不能为空',
  21. 'total_fee' => '付款金额不能为空',
  22. 'order_no' => '订单号不能为空',
  23. 'publickey' => '公钥不能为空',
  24. 'sign' => '签名不能为空',
  25. ];
  26. protected $scene = [
  27. 'dopay' => ['openid','mchid','name','total_fee','order_no','publickey','sign'], //后台提现审核
  28. ];
  29. }