|
@@ -157,13 +157,16 @@ public class FdkkSceneEditService {
|
|
|
if(fdkkResponse.getCode() !=0){
|
|
|
throw new BusinessException(fdkkResponse.getCode(),fdkkResponse.getMsg());
|
|
|
}
|
|
|
- JSONArray hotJson = getHotJson(fdkkHotRequest.getNum());
|
|
|
- String path = String.format(hotLocalPath, fdkkHotRequest.getNum())+"/"+"hot.json";
|
|
|
+ writeHotJson(fdkkHotRequest.getNum());
|
|
|
+ }
|
|
|
+
|
|
|
+ public void writeHotJson(String num) throws IOException {
|
|
|
+ JSONArray hotJson = getHotJson(num);
|
|
|
+ String path = String.format(hotLocalPath,num)+"/"+"hot.json";
|
|
|
String json = JSONUtil.toJsonStr(hotJson);
|
|
|
FileUtils.writeFile(path,json );
|
|
|
- uploadToOssUtil.upload(path,String.format(hotCdfPath, fdkkHotRequest.getNum()));
|
|
|
+ uploadToOssUtil.upload(path,String.format(hotCdfPath, num));
|
|
|
}
|
|
|
-
|
|
|
public FdkkResponse uploadFiles(FdkkUploadRequest fdkkUploadRequest, MultipartFile[] files, String token) throws IOException {
|
|
|
List<MultipartFile> multipartFiles = new ArrayList<>();
|
|
|
if(StringUtils.isNotBlank(fdkkUploadRequest.getBase64())){
|