|
|
|
@ -850,7 +850,7 @@ class ShixunsController < ApplicationController
|
|
|
|
|
begin
|
|
|
|
|
raise "请先绑定邮箱" if User.current.mail.blank?
|
|
|
|
|
new_shixun = Shixun.new
|
|
|
|
|
new_shixun.attributes = @shixun.attributes.dup.except("id","user_id","visits","gpid","status", "identifier", "homepage_show","git_url")
|
|
|
|
|
new_shixun.attributes = @shixun.attributes.dup.except("id","user_id","visits","gpid","status", "identifier", "homepage_show","git_url", "propaedeutics")
|
|
|
|
|
new_shixun.user_id = User.current.id
|
|
|
|
|
new_shixun.identifier = generate_identifier
|
|
|
|
|
new_shixun.status = 0
|
|
|
|
|