dengsixing 3 роки тому
батько
коміт
6303712bdc

+ 5 - 1
src/main/java/com/fdkankan/repair/service/impl/SceneUpgradeToV4Service.java

@@ -65,6 +65,7 @@ import java.util.stream.Collectors;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.stereotype.Service;
 
 /**
@@ -75,6 +76,7 @@ import org.springframework.stereotype.Service;
  * @author dengsixing
  * @since 2022/4/21
  **/
+@RefreshScope
 @Slf4j
 @Service
 public class SceneUpgradeToV4Service implements ISceneUpgradeToV4Service {
@@ -87,6 +89,8 @@ public class SceneUpgradeToV4Service implements ISceneUpgradeToV4Service {
     private String ossUrlPrefix;
     @Value("${http.host.4dkankanMini}")
     private String fkankanMiniHost;
+    @Value("${http.api-v4.upgradeToV4ResultSync}")
+    private String URL_UPGRADE_TO_V4_RESULT_SYNC;
 
 
     @Autowired
@@ -445,7 +449,7 @@ public class SceneUpgradeToV4Service implements ISceneUpgradeToV4Service {
             sceneRepairLogService.updateById(sceneRepairLog);
 
             // 调用v3接口回写数据
-            String url = fkankanMiniHost + "/api-v4/upgradeToV4ResultSync";
+            String url = fkankanMiniHost + URL_UPGRADE_TO_V4_RESULT_SYNC;
             fdkankanMiniClient.upgradeToV4ResultSync(url,
                 RequestSceneProV4.builder().id(sceneProId).webSite(scenePro.getWebSite()).build(),
                 new FdkkMiniReqSuccessCallback(), new FdkkMiniReqErrorCallback()