StoreCartValidate.php 389 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020/5/28
  7. *
  8. *
  9. */
  10. namespace app\validate\api;
  11. use think\Validate;
  12. class StoreCartValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'product_id|商品ID' => 'require',
  17. 'product_attr_unique|SKU' => 'require',
  18. 'cart_num|购买数量' => 'require|number',
  19. ];
  20. }