This commit is contained in:
parent
0369716df7
commit
5b208202a0
|
@ -15,7 +15,6 @@ module Mobile
|
||||||
end
|
end
|
||||||
post ':id' do
|
post ':id' do
|
||||||
# authenticate!
|
# authenticate!
|
||||||
|
|
||||||
unless current_user
|
unless current_user
|
||||||
#如果当前用户不存在
|
#如果当前用户不存在
|
||||||
openid = session[:wechat_openid]
|
openid = session[:wechat_openid]
|
||||||
|
|
|
@ -130,7 +130,6 @@ module Wechat
|
||||||
}
|
}
|
||||||
|
|
||||||
get 'https://api.weixin.qq.com/sns/userinfo',params: params
|
get 'https://api.weixin.qq.com/sns/userinfo',params: params
|
||||||
|
|
||||||
# get 'userinfo', params: params, base: OAUTH2_USERINFO
|
# get 'userinfo', params: params, base: OAUTH2_USERINFO
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue