gc-shop/src/main/java/com/xzx/gc/shop/service/OrderService.java
@@ -160,6 +160,17 @@ if (goods == null || ScoreGoods.ISSALE_NO.equals(goods.getIsSale())) { throw new RestException(-3, "商品不存在或已下架"); } if (ScoreGoods.ISQG_YES.equals(goods.getIsQg())) { if (new Date().before(goods.getQgStartTime())) { throw new RestException(-3, "抢购未开始"); } if (new Date().after(goods.getQgEndTime())) { throw new RestException(-3, "抢购已结束"); } } AccountInfo accountInfo = accountInfoMapper.selectAccountInfoByUserId(addGoodsOrderDto.getUserId()); if (accountInfo.getCollectScore() == null) {