From 01c8d0147452c44cbaa0f87ab7a7fe5ca125d6f3 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 27 Dec 2019 16:44:05 +0800 Subject: [PATCH] 1 --- app/controllers/application_controller.rb | 2 +- app/controllers/shixuns_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 9630caaec..ca9ecf01f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -400,7 +400,7 @@ class ApplicationController < ActionController::Base end rescue Exception => e uid_logger("--uri_exec: exception #{e.message}") - raise Educoder::TipException.new("实训平台繁忙(繁忙等级:84)") + raise Educoder::TipException.new(message) end end diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 9dd38523e..c871c3064 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -795,7 +795,7 @@ class ShixunsController < ApplicationController rep_url = Base64.urlsafe_encode64(repo_ip_url @repo_path) uri = "#{cloud_bridge}/bridge/game/openGameInstance" params = {tpiID: "#{@myshixun.id}", tpmGitURL: rep_url, tpiRepoName: @myshixun.repo_name.split("/").last} - interface_post uri, params, 83, "实训云平台繁忙(繁忙等级:83)" + interface_post uri, params, 83, "服务器出现问题,请重置环境" end end rescue => e