|
|
|
@ -109,12 +109,12 @@ module Mobile
|
|
|
|
|
return uw.user if uw
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
third_party_user_id = session[:third_party_user_id]
|
|
|
|
|
Rails.logger.info("#########third_party_user_id: #{third_party_user_id}")
|
|
|
|
|
if third_party_user_id
|
|
|
|
|
c_user = UserSource.find_by_id(session[:third_party_user_id])
|
|
|
|
|
return c_user.user if c_user
|
|
|
|
|
end
|
|
|
|
|
# third_party_user_id = session[:third_party_user_id]
|
|
|
|
|
# Rails.logger.info("#########third_party_user_id: #{third_party_user_id}")
|
|
|
|
|
# if third_party_user_id
|
|
|
|
|
# c_user = UserSource.find_by_id(session[:third_party_user_id])
|
|
|
|
|
# return c_user.user if c_user
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
token = ApiKey.where(access_token: params[:token]).first
|
|
|
|
|
if token && !token.expired?
|
|
|
|
|