|
@@ -21,6 +21,7 @@ import com.fdkankan.contro.service.*;
|
|
|
import com.fdkankan.contro.vo.ResponseSceneFile;
|
|
|
import com.fdkankan.contro.vo.ScenePlusVO;
|
|
|
import com.fdkankan.fyun.config.FYunFileConfig;
|
|
|
+import com.fdkankan.fyun.constant.FYunTypeEnum;
|
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
import com.fdkankan.model.constants.ConstantFilePath;
|
|
|
import com.fdkankan.model.constants.UploadFilePath;
|
|
@@ -60,6 +61,8 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
|
|
|
@Value("${main.url}")
|
|
|
private String mainUrl;
|
|
|
+ @Value("${fyun.type}")
|
|
|
+ private String fyunType;
|
|
|
|
|
|
@Value("${scene.pro.new.url}")
|
|
|
private String sceneProNewUrl;
|
|
@@ -279,7 +282,10 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
firmwareVersion.put("version", jsonObject.getString("version"));
|
|
|
}
|
|
|
|
|
|
- String sceneUrl = mainUrl + "/" + sceneProNewUrl;
|
|
|
+ String sceneUrl = sceneProNewUrl;
|
|
|
+ if(!FYunTypeEnum.LOCAL.code().equals(fyunType)){
|
|
|
+ sceneUrl = mainUrl + "/" + sceneUrl;
|
|
|
+ }
|
|
|
|
|
|
//重算的场景,先移除该场景对应的容量
|
|
|
if (rebuild == 1) {
|