OrderExpressValidate.php 666 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\admin\validate\order;
  3. use support\Validate;
  4. class OrderExpressValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'order_id' => 'require|alphaDash',
  8. 'order_express_code|快递单号' => 'alphaDash',
  9. // 'order_express_city|省市县区' => 'require',
  10. // 'order_express_address|具体地址' => 'require',
  11. // 'order_express_mobile|联系电话' => 'mobile',
  12. // 'order_express_telephone|备用电话' => 'mobile',
  13. // 'order_express_person|收件人信息' => 'require',
  14. ];
  15. protected $scene = [
  16. 'delivery' => ['order_id', 'order_express_type', 'order_express_code']
  17. ];
  18. }