From 582e0b19c61c9386d540aa4f98fd4d59745c8fe5 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 29 May 2019 17:23:16 +0800 Subject: [PATCH] 1 --- app/services/cnmoocs_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/cnmoocs_service.rb b/app/services/cnmoocs_service.rb index dd07cd57..24a9950e 100644 --- a/app/services/cnmoocs_service.rb +++ b/app/services/cnmoocs_service.rb @@ -116,7 +116,7 @@ class CnmoocsService def source_url(params) 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 shixun = Shixun.find_by_id(params[:resouceId]) if shixun.blank?