|
@@ -209,12 +209,13 @@ public class FdkkSceneEditService {
|
|
public void writeHotJsonHk(String num,String lang){
|
|
public void writeHotJsonHk(String num,String lang){
|
|
try {
|
|
try {
|
|
JSONArray hotJson = getHotJson(num,"HK",lang);
|
|
JSONArray hotJson = getHotJson(num,"HK",lang);
|
|
- String path = String.format(hotLocalPath,num)+"/"+"hot_" +lang +".json";
|
|
|
|
|
|
+ String name = "hot_" +lang +".json";
|
|
|
|
+ String path = String.format(hotLocalPath,num)+"/"+name;
|
|
String json = JSONUtil.toJsonStr(hotJson);
|
|
String json = JSONUtil.toJsonStr(hotJson);
|
|
FileUtils.writeFile(path,json );
|
|
FileUtils.writeFile(path,json );
|
|
- uploadToCdfOssUtil.upload(path,String.format(hotCdfPath, num));
|
|
|
|
|
|
+ uploadToCdfOssUtil.upload(path,String.format(hotCdfPath, num).replace("hot.json",name));
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
-
|
|
|
|
|
|
+ e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|