diff --git a/app/services/games_service.rb b/app/services/games_service.rb index ab44d262..22df565d 100644 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -86,7 +86,7 @@ class GamesService if res && res['code'].to_i != 0 raise("实训云平台繁忙(繁忙等级:99)") end - url = service_host +":#{res['port']}/vnc_lite.html?password=headless" + url = "#{service_host}" +":#{res['port']}/vnc_lite.html?password=headless" Rails.logger.info("66666666sssssss#{url}") container = container.merge(:vnc_url => url) Rails.logger.info("777777666sssssss#{container}")