Sellerdeliverset.php 986 B

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