From 16418675acae0f3c87d876fd3b01effb2ef0d38c Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 9 Dec 2021 11:08:10 +0800 Subject: [PATCH] fix --- app/controllers/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 9012792c6..4d234c9c9 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -85,7 +85,7 @@ class RepositoriesController < ApplicationController if @sub_entries.blank? || @sub_entries['status'].to_i === -1 @sub_entries = Educoder::Repository::Entries::GetService.call(@project&.project_educoder&.repo_name, file_path_uri) return render_error('该文件暂未开放,敬请期待.') if @sub_entries['status'].to_i === -1 - tmp_entries = [{ + tmp_entries = { "content" => @sub_entries['data']['content'], "type" => "blob" }