From d36972bec91ae67fcc69b8ff39741f5ec68e3333 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 29 May 2019 17:29:02 +0800 Subject: [PATCH] 1 --- app/api/mobile/apis/cnmooc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/mobile/apis/cnmooc.rb b/app/api/mobile/apis/cnmooc.rb index 720ac26b..2d1f41b3 100644 --- a/app/api/mobile/apis/cnmooc.rb +++ b/app/api/mobile/apis/cnmooc.rb @@ -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