|
|
@ -43,13 +43,6 @@ module Mobile
|
|
|
|
requires :accessType, type: Integer, desc: "资源类型"
|
|
|
|
requires :accessType, type: Integer, desc: "资源类型"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
get "source_url" do
|
|
|
|
get "source_url" do
|
|
|
|
|
|
|
|
|
|
|
|
if session[:third_party_user_id].blank?
|
|
|
|
|
|
|
|
user = User.find(params[:userId])
|
|
|
|
|
|
|
|
session[:third_party_user_id] = user.user_source.id
|
|
|
|
|
|
|
|
#self.logged_user = user
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
Rails.logger.info("####session: #{session}")
|
|
|
|
|
|
|
|
CnmoocsService.new.source_url(params)
|
|
|
|
CnmoocsService.new.source_url(params)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|