StoreValidate.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\validate\store\system;
  12. use think\Validate;
  13. class StoreValidate extends Validate
  14. {
  15. protected $rule = [
  16. 'image' => 'require',
  17. 'name' => 'require',
  18. 'phone' => 'require',
  19. 'address' => 'require',
  20. 'province' => 'require',
  21. 'city' => 'require',
  22. 'area' => 'require',
  23. 'street' => 'require',
  24. 'detailed_address' => 'require',
  25. 'day_time' => 'require',
  26. ];
  27. protected $message = [
  28. 'image.require' => '请选择门店图片',
  29. 'name.require' => '门店名称必须填写',
  30. 'phone.require' => '门店手机号必须填写',
  31. 'address.require' => '请选择门店地址',
  32. 'province.require' => '请选择门店地址省份',
  33. 'city.require' => '请选择门店所属市',
  34. 'area.require' => '请选择门店所属区',
  35. 'street.require' => '请选择门店所属街道',
  36. 'detailed_address.require' => '请选择门店详细地址',
  37. 'day_time.require' => '请选择营业时间',
  38. ];
  39. }