Browse Source

Bug修复

tangxiangan 4 months ago
parent
commit
b51f38f9cf

+ 1 - 1
pdf-office-payment/src/main/java/cn/kdan/cloud/pdf/office/payment/properties/AppStoreProperties.java

@@ -38,5 +38,5 @@ public class AppStoreProperties {
     private String isSandbox;
 
     private String currency;
-    private  String testCallBack;
+    private String testCallBack;
 }

+ 3 - 2
pdf-office-payment/src/main/java/cn/kdan/cloud/pdf/office/payment/webhook/AppStoreWebhookMonitor.java

@@ -21,6 +21,7 @@ import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import org.redisson.api.RLock;
 import org.redisson.api.RedissonClient;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.*;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -49,8 +50,8 @@ public class AppStoreWebhookMonitor {
     private final AppStoreWebhookService appStoreWebhookService;
     private final RestTemplate restTemplate = new RestTemplate();
 
-    private AppStoreProperties properties;
-    private AppStoreService appStoreService;
+    private final AppStoreProperties properties;
+    private final AppStoreService appStoreService;
 
     @RequestMapping(value = "/webhook/subscription", method = RequestMethod.POST)
     public ResponseEntity<String> receiveSubscriptionCallback(@RequestBody(required = false) ResponseBodyV2 responseBodyV2) {