From 8a187df5f414f79c2bf4f31cef2e1908a43bed6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cxxq250=E2=80=9D?= <“xxq250@qq.com”> Date: Thu, 28 Jul 2022 17:59:20 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20CloudIDEA=E6=96=87=E4=BB=B6=E6=A0=87?= =?UTF-8?q?=E8=AE=B0=E5=B7=B2=E8=AF=BB=E6=9C=AA=E8=AF=BB=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/mark_files/index.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/mark_files/index.json.jbuilder b/app/views/mark_files/index.json.jbuilder index d3c080134..709be77b8 100644 --- a/app/views/mark_files/index.json.jbuilder +++ b/app/views/mark_files/index.json.jbuilder @@ -4,7 +4,7 @@ json.count @files_result['NumFiles'] json.files do json.array! @files_result['Files'] do |file| mark_file = @mark_files.select{|mark| mark.file_path.to_s == file['Name']}.first - json.sha Base64.encode64(file['Name'].to_s) + json.file_path_sha Base64.strict_encode64(file['Name'].to_s) json.name file['Name'] json.mark_as_read mark_file.present? ? mark_file.mark_as_read : false # json.updated_after_read mark_file.present? ? mark_file.updated_after_read : false