|
|
@ -116,7 +116,7 @@ class CnmoocsService
|
|
|
|
|
|
|
|
|
|
|
|
def source_url(params)
|
|
|
|
def source_url(params)
|
|
|
|
user_source = UserSource.find_by_user_id(params[:userId])
|
|
|
|
user_source = UserSource.find_by_user_id(params[:userId])
|
|
|
|
return {error: -1, messages: "用户不存在,请先创建用户"} if user_source
|
|
|
|
return {error: -1, messages: "用户不存在,请先创建用户"} if user_source.blank?
|
|
|
|
self.logged_user = user_source.user
|
|
|
|
self.logged_user = user_source.user
|
|
|
|
shixun = Shixun.find_by_id(params[:resouceId])
|
|
|
|
shixun = Shixun.find_by_id(params[:resouceId])
|
|
|
|
if shixun.blank?
|
|
|
|
if shixun.blank?
|
|
|
|