|
|
|
@ -46,7 +46,7 @@ module Mobile
|
|
|
|
|
if session[:user_id].blank?
|
|
|
|
|
user = User.find(params[:userId])
|
|
|
|
|
return { error: -1, messages: "用户不存在,请先创建用户" } unless user.user_source
|
|
|
|
|
session[:user_id] = user.user_source.id
|
|
|
|
|
session[:user_id] = user.id
|
|
|
|
|
end
|
|
|
|
|
CnmoocsService.new.source_url(params)
|
|
|
|
|
end
|
|
|
|
|