BackGoodsValidate.php 498 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020/6/13
  7. *
  8. *
  9. */
  10. namespace app\validate\api;
  11. use think\Validate;
  12. class BackGoodsValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'delivery_type|快递公司' => 'require',
  17. 'delivery_id|快递单号' => 'require',
  18. 'delivery_phone|联系电话' => 'require|mobile',
  19. 'delivery_mark|备注' => 'max:200',
  20. 'delivery_pics|凭证' => 'array|max:9',
  21. ];
  22. }