From 7254751f20fea032a4b56f2a31f7bb8f9a83f981 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 14 Feb 2020 22:38:16 +0800 Subject: [PATCH] =?UTF-8?q?vnc=E5=AE=9E=E8=AE=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/weapps/challenges_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/weapps/challenges_controller.rb b/app/controllers/weapps/challenges_controller.rb index 49d065f03..e6ba35731 100644 --- a/app/controllers/weapps/challenges_controller.rb +++ b/app/controllers/weapps/challenges_controller.rb @@ -3,8 +3,8 @@ class Weapps::ChallengesController < Weapps::BaseController before_action :set_challenge def is_play - # 关卡有展示效果 || 选择题 || jupyter实训 || 隐藏代码窗口 || html+css实训 - play = @challenge.show_type != -1 || @challenge.st == 1 || @shixun.is_jupyter? || + # 关卡有展示效果 || 选择题 || jupyter实训 || vnc || 隐藏代码窗口 || html+css实训 + play = @challenge.show_type != -1 || @challenge.st == 1 || @shixun.is_jupyter? || @shixun.vnc || @shixun.hide_code? || (@shixun.small_mirror_name & ["Css", "Html", "Web"]).present? if play normal_status(-5, "该关卡暂不支持小程序")