ExpresscfKdnConfig.php 771 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. * DSO2O多用户商城
  6. *
  7. * ----------------------------------------------------------------------------
  8. *
  9. * 验证器
  10. */
  11. class ExpresscfKdnConfig extends Validate
  12. {
  13. protected $rule = [
  14. 'express_code' => 'require',
  15. 'expresscf_kdn_config_pay_type' => 'require',
  16. ];
  17. protected $message = [
  18. 'express_code.require' => '快递公司编码必填',
  19. 'expresscf_kdn_config_pay_type.require' => '运费支付方式必填',
  20. ];
  21. protected $scene = [
  22. 'expresscf_kdn_config_add' => ['express_code', 'expresscf_kdn_config_pay_type'],
  23. 'expresscf_kdn_config_edit' => ['expresscf_kdn_config_pay_type'],
  24. ];
  25. }