|
|
@@ -28,6 +28,7 @@ import org.springframework.amqp.core.Message;
|
|
|
import org.springframework.amqp.rabbit.annotation.Queue;
|
|
|
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.io.File;
|
|
|
@@ -37,6 +38,9 @@ import java.nio.charset.StandardCharsets;
|
|
|
@Component
|
|
|
public class UploadSceneListener {
|
|
|
|
|
|
+ @Value("${scene.pro.new.url}")
|
|
|
+ private String sceneProNewUrl;
|
|
|
+
|
|
|
@Autowired
|
|
|
private FYunFileServiceInterface fYunFileService;
|
|
|
@Autowired
|
|
|
@@ -162,6 +166,7 @@ public class UploadSceneListener {
|
|
|
scenePlusExt.setPlusId(scenePlusExtDb.getPlusId());
|
|
|
scenePlusExt.setId(scenePlusExtDb.getId());
|
|
|
scenePlusExt.setCreateTime(null);
|
|
|
+ scenePlusExt.setWebSite("/" + sceneProNewUrl + scenePlus.getNum());
|
|
|
scenePlusExtService.updateById(scenePlusExt);
|
|
|
|
|
|
SceneEditInfo sceneEditInfo = JSON.parseObject(sceneJsonStr, SceneEditInfo.class);
|