|
@@ -164,6 +164,9 @@ public class FdkkSceneEditService {
|
|
JSONArray tags = JSONObject.parseArray(data);
|
|
JSONArray tags = JSONObject.parseArray(data);
|
|
return getProductByJsonObj(tags,pType,language);
|
|
return getProductByJsonObj(tags,pType,language);
|
|
}
|
|
}
|
|
|
|
+ public Boolean cdfHasHotJson(String num) {
|
|
|
|
+ return uploadToCdfOssUtil.existKey(String.format(hotCdfPath, num));
|
|
|
|
+ }
|
|
|
|
|
|
public JSONArray getCdfHotJson(String num) {
|
|
public JSONArray getCdfHotJson(String num) {
|
|
String data = uploadToCdfOssUtil.getObjectContent(String.format(hotCdfPath, num));
|
|
String data = uploadToCdfOssUtil.getObjectContent(String.format(hotCdfPath, num));
|
|
@@ -230,6 +233,9 @@ public class FdkkSceneEditService {
|
|
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).replace("hot.json",name));
|
|
uploadToCdfOssUtil.upload(path,String.format(hotCdfPath, num).replace("hot.json",name));
|
|
|
|
+ if("eshop_zh".equals(lang)){
|
|
|
|
+ uploadToCdfOssUtil.upload(path,String.format(hotCdfPath, num));
|
|
|
|
+ }
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|