From 15e0bd4133ea87876af00aef2995d3a739f794a0 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sat, 27 Jul 2019 17:32:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects_controller.rb | 2 +- app/views/projects/che_request.js.erb | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 90d439a7a..a07326c0b 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -391,7 +391,7 @@ class ProjectsController < ApplicationController def che_request response = send_to_che @link_ide = response["links"]["ide"] if response["links"] - @message = response["message"] + @link_ide = "http://106.75.119.131:8080/che/test_for_trustie" unless @link_ide Rails.logger.info("#############link_ide: #{@link_ide}") end diff --git a/app/views/projects/che_request.js.erb b/app/views/projects/che_request.js.erb index 58f628417..74ac57de7 100644 --- a/app/views/projects/che_request.js.erb +++ b/app/views/projects/che_request.js.erb @@ -1,5 +1 @@ -<% if @link_ide %> -window.location.href = "<%= @link_ide %>"; -<% else %> -notice_box("<%= @message %>"); -<% end %> \ No newline at end of file +window.location.href = "<%= @link_ide %>"; \ No newline at end of file