dev_hjm_a
daiao 5 years ago
parent d35e54e948
commit 0bf4455c61

@ -129,7 +129,7 @@ class Shixun < ApplicationRecord
end
def main_mirror_id
mirror_repositories.published_main_mirror.first.try(:id) || -1
mirror_repositories.where(main_type: 1).first.try(:id) || -1
end
# 实训对应的镜像小类别名(已选)

Loading…
Cancel
Save