From f4467bc222624ebfcd0e73b240b36e92f2ba4fa4 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 7 Jul 2017 14:12:40 +0800 Subject: [PATCH] =?UTF-8?q?webssh=E6=B7=BB=E5=8A=A0gameid=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/myshixuns_controller.rb | 2 +- app/views/games/_repository.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/myshixuns_controller.rb b/app/controllers/myshixuns_controller.rb index 2b3f81621..e4c03a22c 100644 --- a/app/controllers/myshixuns_controller.rb +++ b/app/controllers/myshixuns_controller.rb @@ -31,7 +31,7 @@ class MyshixunsController < ApplicationController if res && res['code'].to_i != 0 raise("实训云平台繁忙(繁忙等级:92)") end - render :json => {:host => res['address'], :port => res['port'], :username => username, :password => password} + render :json => {:host => res['address'], :port => res['port'], :username => username, :password => password, :game_id => @myshixun.id} rescue Exception => e logger.error(e) render :json => {:error => e.try(:message)} diff --git a/app/views/games/_repository.html.erb b/app/views/games/_repository.html.erb index e66444690..4f3eff197 100644 --- a/app/views/games/_repository.html.erb +++ b/app/views/games/_repository.html.erb @@ -77,7 +77,7 @@ if(data.error){ return; }else{ - var html = ""; + var html = ""; console.log(html); $("#codotab_con_2").html(html); var h = $("#games_repository_contents").height() - $("#top_repository").height() - 10;