zoujiajian 1 anno fa
parent
commit
985a278814

+ 3 - 0
netflix-service/src/main/java/com/cyksj/service/exchange/impl/ExchangeCodeServiceImpl.java

@@ -194,6 +194,9 @@ public class ExchangeCodeServiceImpl extends ServiceImpl<ExchangeCodeMapper, Exc
 		if (exchangeCode.getUseStatus()) {
 			throw BusinessRuntimeException.getInstance("该兑换码已使用");
 		}
+		if (exchangeCode.getType() == 2) {
+			throw BusinessRuntimeException.getInstance("兑换码错误");
+		}
 		//店铺中 进行兑换码 兑换 标记订单 座位
 		String customId = exchangeCodeTicket.getCustomId();
 		Long yhsId = yhShopFrontService.checkShopCustomIdAndReturnShopId(customId);