Browse Source

国际环境 计算后 默认加上滤镜

dengsixing 1 year ago
parent
commit
9cc11ea2ac

+ 7 - 0
src/main/java/com/fdkankan/contro/factory/UserEditData/FiltersHandler.java

@@ -98,6 +98,13 @@ public class FiltersHandler implements UserEditDataHandler {
         List<String> filterList = collect.stream().map(item->JSON.toJSONString(item)).collect(Collectors.toList());
         redisUtil.lRightPushAll(key, filterList);
 
+        String userEditPath = String.format(UploadFilePath.USER_EDIT_PATH, num);
+        String userViewPath = String.format(UploadFilePath.USER_EDIT_PATH, num);
+        List<String> list = redisUtil.lGet(key, 0, -1);
+        JSONArray jsonArray = new JSONArray();
+        list.stream().forEach(str->jsonArray.add(JSON.parseObject(str)));
+        fYunFileService.uploadFile(JSON.toJSONBytes(jsonArray), userViewPath + "filter.json");
+
         //写本地文件,作为备份
         this.writeFilter(num);