From 9d606f6349d576e9007dbffff34e9a494c6135a3 Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 14 Mar 2019 19:11:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...t_works.rb => 20190314080801_create_shixun_student_works.rb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename db/migrate/{20190314080800_create_shixun_student_works.rb => 20190314080801_create_shixun_student_works.rb} (98%) diff --git a/db/migrate/20190314080800_create_shixun_student_works.rb b/db/migrate/20190314080801_create_shixun_student_works.rb similarity index 98% rename from db/migrate/20190314080800_create_shixun_student_works.rb rename to db/migrate/20190314080801_create_shixun_student_works.rb index 3fe2b4e7..29e5f4b4 100644 --- a/db/migrate/20190314080800_create_shixun_student_works.rb +++ b/db/migrate/20190314080801_create_shixun_student_works.rb @@ -47,7 +47,7 @@ class CreateShixunStudentWorks < ActiveRecord::Migration :onclick_time => Time.now, :gpid => gshixun.id, :git_url => gshixun.try(:path_with_namespace), :commit_id => commit_id) - url = "#{Redmine::Configuration['gitlab_address_ip']}/#{g.project(container.try(:gpid)).try(:path_with_namespace)}.git" + url = "#{Redmine::Configuration['gitlab_address_ip']}/#{g.project(shixun.try(:gpid)).try(:path_with_namespace)}.git" rep_url = Base64.urlsafe_encode64(url) # 注意:educoder为默认给实训创建版本库的用户,如果换成别的用户,名字要相应的修改 uri = "#{shixun_tomcat}/bridge/game/openGameInstance"