|
@@ -3,6 +3,7 @@ package com.sooka.sponest.dataexchange.exchange.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ruoyi.common.core.utils.file.FilePrefixUtils;
|
|
|
+import com.ruoyi.system.api.RemoteConfigService;
|
|
|
import com.ruoyi.system.api.RemoteFileService;
|
|
|
import com.ruoyi.system.api.domain.SysFile;
|
|
|
import com.sooka.sponest.dataexchange.util.spring.SpringUtils;
|
|
@@ -36,10 +37,11 @@ public class ExchangeController {
|
|
|
private RemoteAuthBaseService remoteAuthBaseService;
|
|
|
@Resource
|
|
|
private RemoteEventBaseService remoteEventBaseService;
|
|
|
+ @Resource
|
|
|
+ private RemoteConfigService remoteConfigService;
|
|
|
|
|
|
@Value("${}")
|
|
|
private String url;
|
|
|
- private final String pictureUrl = "http://116.142.80.13:8081/";
|
|
|
|
|
|
/**
|
|
|
* 获取秘钥接口
|
|
@@ -101,9 +103,10 @@ public class ExchangeController {
|
|
|
@PostMapping("/receiveEventData")
|
|
|
@ResponseBody
|
|
|
public R<?> pushData(@RequestBody DataExchangeEntity dataExchangeEntity) {
|
|
|
+ R<String> appUrl = remoteConfigService.remotegetConfigKey("appUrl");
|
|
|
List<String> pictureList = new ArrayList<>();
|
|
|
for (String picture : dataExchangeEntity.getEventPicture()) {
|
|
|
- pictureList.add(pictureUrl + picture);
|
|
|
+ pictureList.add(appUrl.getData().toString() + picture);
|
|
|
}
|
|
|
dataExchangeEntity.setEventPicture(pictureList);
|
|
|
// TODO: 2024/1/9 0009 待修改
|