|
@@ -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);
|
|
|
|