فهرست منبع

fix 规格下架无法续费

zoujiajian 2 سال پیش
والد
کامیت
dbe7f01649

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

@@ -857,6 +857,10 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
 		}
 		GoodsDonSku sku = adjustGoodsDonSku(yhsId, false, renewSkuId);
 
+		if (sku == null || !sku.getStatus()) {
+			throw BusinessRuntimeException.getInstance("该规格已下架,无法续费..");
+		}
+
 		GroupsRelation relation = groupsRelationMapper.selectById(relationId);
 		if (relation == null) {
 			throw new BusinessRuntimeException("");

+ 1 - 1
netflix-web/src/main/java/com/cyksj/web/controller/manage/group/CmsGroupRelationController.java

@@ -191,7 +191,7 @@ public class CmsGroupRelationController {
             if (groupsTrips != null) {
                 e.setAccount(groupsTrips.getAccount());
                 e.setPassword(groupsTrips.getPassword());
-                e.setAccountExpiryTime(e.getExpiryTime());
+                e.setAccountExpiryTime(groupsTrips.getExpiryTime());
             }
         });
         return GatewayResponse.SUCCESS.newBuilder().toResult(search);