Sellerdeliverset.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. * ============================================================================
  6. *
  7. * ============================================================================
  8. * 版权所有 2014-2028 浙江惠利玛产业互联网有限公司,并保留所有权利。
  9. * 网站地址: https://www.valimart.net/
  10. * ----------------------------------------------------------------------------
  11. *
  12. * ============================================================================
  13. * 验证器
  14. */
  15. class Sellerdeliverset extends Validate
  16. {
  17. protected $rule = [
  18. 'seller_name'=>'require',
  19. 'daddress_detail'=>'require',
  20. 'daddress_telphone'=>'require',
  21. 'store_printexplain'=>'require|length:1,200'
  22. ];
  23. protected $message = [
  24. 'seller_name.require'=>'联系人必填',
  25. 'daddress_detail.require'=>'地址必填',
  26. 'daddress_telphone.require'=>'电话必填',
  27. 'store_printexplain.require'=>'说明不能为空|长度在1-200之间',
  28. 'store_printexplain.length'=>'说明不能为空|长度在1-200之间'
  29. ];
  30. protected $scene = [
  31. 'daddress_add' => ['seller_name', 'daddress_detail', 'daddress_telphone'],
  32. 'print_set' => ['store_printexplain'],
  33. ];
  34. }