|
|
@@ -100,7 +100,7 @@ public class MirrorUserCleatServiceImpl implements MirrorUserCleatService {
|
|
|
.eq(OrderDonRenewRecord::getOrderId, orderId)
|
|
|
.last("limit 1"));
|
|
|
List<Long> userIdList = userBindRelationService.getRelationUserIdList(orderDon.getUserId(), null);
|
|
|
- if (orderDonRenewRecord != null && orderDonRenewRecord.getOrderType() == 1) {
|
|
|
+ if (orderDonRenewRecord != null) {
|
|
|
ChatgptUser chatgptUser = chatgptUserMapper.selectOne(Wrappers.lambdaQuery(ChatgptUser.class)
|
|
|
.eq(ChatgptUser::getRelationId, orderDon.getRelationId())
|
|
|
.last("limit 1"));
|
|
|
@@ -159,11 +159,11 @@ public class MirrorUserCleatServiceImpl implements MirrorUserCleatService {
|
|
|
//将续费有效置为过期
|
|
|
orderDonRenewRecord.setIsValid(true);
|
|
|
orderDonRenewRecordMapper.updateById(orderDonRenewRecord);
|
|
|
- }
|
|
|
|
|
|
- //退款续费 镜像订单
|
|
|
- if (orderDon.getGoodsId() == 18 && orderDon.getOrderType() == 2 && sku.getIsMirror()) {
|
|
|
- handleGptMirrorRenewOrderRefund(orderDon, sku);
|
|
|
+ //退款续费 套餐升级订单
|
|
|
+ if (orderDon.getOrderType() == 2) {
|
|
|
+ handleGptMirrorRenewOrderRefund(orderDon, sku);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|