Browse Source

Bug修复

tangxiangan 4 tháng trước cách đây
mục cha
commit
64acd14b17

+ 1 - 1
pdf-office-payment/src/main/java/cn/kdan/cloud/pdf/office/payment/client/AppStoreClient.java

@@ -213,7 +213,7 @@ public class AppStoreClient {
 
         // Make the GET request with sorting order
         HistoryResponse a = restTemplate.exchange(
-                "https://api.storekit-sandbox.itunes.apple.com/inApps/v2/history/{transactionId}?sort=" + sortingOrder,
+                "https://api.storekit.itunes.apple.com/inApps/v2/history/{transactionId}?sort=" + sortingOrder,
                 HttpMethod.GET, // Change to GET
                 new HttpEntity<>(null, httpHeaders), // No body for GET, just headers
                 HistoryResponse.class,

+ 0 - 6
pdf-office-payment/src/main/java/cn/kdan/cloud/pdf/office/payment/service/impl/AppStoreServiceImpl.java

@@ -51,17 +51,11 @@ public class AppStoreServiceImpl implements AppStoreService {
 
     private final SubscriptionsService subscriptionsService;
 
-    private final WebhookServiceImpl webhookService;
 
     private final ProductApi productApi;
 
     private final UserApi userApi;
 
-    private final AppStoreProperties appStoreProperties;
-
-    private final UserSubscriptionInfoApi userSubscriptionInfoApi;
-
-    private final RestorePurchaseLogsService restorePurchaseLogsService;
 
     private final EmailApi emailApi;
 

+ 1 - 0
pdf-office-payment/src/main/java/cn/kdan/cloud/pdf/office/payment/service/impl/AppStoreWebhookServiceImpl.java

@@ -34,6 +34,7 @@ public class AppStoreWebhookServiceImpl implements AppStoreWebhookService {
         OrdersVO ordersVO = ordersService.getOrderByThirdOrderNo(thirdOrderId);
         //如果处理过
         if (ObjectUtils.isNotEmpty(ordersVO) && OrderConstant.COMPLETED.equals(ordersVO.getStatus())) {
+            log.info("appstore 订阅的续费支付订单已经处理过 appstore订单id:{}", thirdOrderId);
             return;
         }
         List<OrdersVO> ordersVOS = ordersService.getOrderByTradeNo(thirdTradeNo);