This commit is contained in:
yystopf 2021-12-09 11:08:10 +08:00
parent 102858bc8c
commit 16418675ac
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}