pre_develop
daiao 6 years ago
commit 2a4eac0f4b

@ -75,6 +75,7 @@ class CnmoocsService
if c_user.present?
return { error: -1, messages: '用户已存在' }
end
c_user = CnmoocUser.new(uuid: params[:userName], name: params[:name])
mail = params[:email] || c_user.generate_email
name = params[:name] || "好大学_#{params[:userName]}"

Loading…
Cancel
Save