Browse Source

fix

tags/v4.0.0^2
yystopf 4 years ago
parent
commit
16418675ac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/repositories_controller.rb

+ 1
- 1
app/controllers/repositories_controller.rb 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"
}


Loading…
Cancel
Save