Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

sso^2
cxt 5 years ago
commit ea24255cab

@ -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, "该关卡暂不支持小程序")

Loading…
Cancel
Save