ソースを参照

fix 限制claude code天卡续费

zoujiajian 10 ヶ月 前
コミット
931ca710a5

+ 8 - 0
netflix-service/src/main/java/com/cyksj/service/order/impl/OrderDonServiceImpl.java

@@ -1268,6 +1268,14 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
 			throw BusinessRuntimeException.getInstance("续费规格错误");
 		}
 
+		//cluade code
+		if (goodsDon.getId() == Constant.CLAUDE_CODE_GOODS_ID) {
+			//天卡规格不可续费
+			if (renewSkuId.intValue() == Constant.DISTRIBUTE_CLAUDE_CODE_TRIAL_SKU_ID.intValue()) {
+				throw BusinessRuntimeException.getInstance("不可续费该规格");
+			}
+		}
+
 		if (GroupsTrips.Status.waiting.equals(groupsTrips.getStatus())) {
 			if (!noChekGoodsTemp.contains(goodsDon.getTitle())) {
 				throw new BusinessRuntimeException("亲,该车次还未发车,需等待客服发车才能续费哦.");