|
@@ -1,5 +1,7 @@
|
|
|
package com.cdf.service.impl;
|
|
|
|
|
|
+import cn.hutool.json.JSONUtil;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.cdf.common.ResultCode;
|
|
@@ -146,7 +148,8 @@ public class FdkkSceneEditService {
|
|
|
}
|
|
|
JSONArray hotJson = getHotJson(fdkkHotRequest.getNum());
|
|
|
String path = String.format(hotLocalPath, fdkkHotRequest.getNum())+"/"+"hot.json";
|
|
|
- FileUtils.writeFile(path, JSONObject.toJSONString(hotJson));
|
|
|
+ String json = JSONUtil.toJsonStr(hotJson);
|
|
|
+ FileUtils.writeFile(path,json );
|
|
|
uploadToOssUtil.upload(path,String.format(hotCdfPath, fdkkHotRequest.getNum()));
|
|
|
}
|
|
|
|