@ -270,7 +270,7 @@ class ChallengesController < ApplicationController
@challenge.destroy
# 关卡位置被删除,需要修改脚本
script = modify_shixun_script @shixun, @shixun.evaluate_script
@shixun.update_column(:evaluate_script, script)
@shixun.shixun_info.update_column(:evaluate_script, script)
end
@ -47,7 +47,8 @@ module Searchable::Shixun
author_name: user.real_name,
author_school_name: user.school_name,
visits_count: visits,
challenges_count: challenges_count
challenges_count: challenges_count,
study_count: myshixuns_count
}