Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_forum
cxt 5 years ago
commit 977cbb7a8b

@ -489,7 +489,15 @@ class GamesController < ApplicationController
path = path.try(:strip) path = path.try(:strip)
uid_logger("--rep_content: path is #{path}") uid_logger("--rep_content: path is #{path}")
begin begin
@content = git_fle_content(@myshixun.repo_path, path) || "" if @myshixun.repo_name.nil?
g = Gitlab.client
repo_name = g.project(@myshixun.gpid).path_with_namespace
@myshixun.update_column(:repo_name, repo_name)
@content = git_fle_content("#{repo_name}.git", path) || ""
else
@content = git_fle_content(@myshixun.repo_path, path) || ""
end
rescue Exception => e rescue Exception => e
# 思路: 异常首先应该考虑去恢复 # 思路: 异常首先应该考虑去恢复
if params[:retry].to_i == 1 if params[:retry].to_i == 1

Loading…
Cancel
Save