Sellerdeliverset.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. * ============================================================================
  6. *
  7. * ============================================================================
  8. *
  9. * ----------------------------------------------------------------------------
  10. *
  11. * ============================================================================
  12. * 验证器
  13. */
  14. class Sellerdeliverset extends Validate
  15. {
  16. protected $rule = [
  17. 'seller_name' => 'require',
  18. 'daddress_detail' => 'require',
  19. 'daddress_telphone' => 'require',
  20. 'store_printexplain' => 'require|length:1,200'
  21. ];
  22. protected $message = [
  23. 'seller_name.require' => '联系人必填',
  24. 'daddress_detail.require' => '地址必填',
  25. 'daddress_telphone.require' => '电话必填',
  26. 'store_printexplain.require' => '说明不能为空|长度在1-200之间',
  27. 'store_printexplain.length' => '说明不能为空|长度在1-200之间'
  28. ];
  29. protected $scene = [
  30. 'daddress_add' => ['seller_name', 'daddress_detail', 'daddress_telphone'],
  31. 'print_set' => ['store_printexplain'],
  32. ];
  33. }