|
|
|
@ -19,7 +19,7 @@ class CreateShixunService < ApplicationService
|
|
|
|
|
# 获取脚本内容
|
|
|
|
|
shixun_script = get_shixun_script(shixun, main_mirror, sub_mirrors)
|
|
|
|
|
# 创建额外信息
|
|
|
|
|
ShixunInfo.new(shixun_id: shixun.id, evaluate_script: shixun_script, description: params[:description])
|
|
|
|
|
ShixunInfo.create!(shixun_id: shixun.id, evaluate_script: shixun_script, description: params[:description])
|
|
|
|
|
# 创建合作者
|
|
|
|
|
shixun.shixun_members.create!(user_id: user.id, role: 1)
|
|
|
|
|
# 创建镜像
|
|
|
|
|