StoreRefundOrderValidate.php 652 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020/6/12
  7. *
  8. *
  9. */
  10. namespace app\validate\api;
  11. use think\Validate;
  12. class StoreRefundOrderValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'type|退款类型' => 'require|in:1,2',
  17. 'refund_type|退款方式' => 'require|in:1,2',
  18. 'num|商品件数' => 'requireIf:type,1|integer|>:0',
  19. 'ids|退款商品' => 'require',
  20. 'refund_message|退款原因' => 'require|max:128',
  21. 'mark|备注' => 'max:128',
  22. 'refund_price|退款金额' => 'require|float',
  23. 'pics|凭证' => 'array|max:9',
  24. ];
  25. }