openid参数

This commit is contained in:
guange 2016-04-02 08:05:49 +08:00
parent ff93e9f79b
commit e1f1c6fbc0
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@ module Mobile
params do
requires :page, type: Integer
requires :token, type: String
requires :openid, type: String
end
post do
user = UserWechat.find_by_openid(params[:openid])

View File

@ -26,7 +26,6 @@ $(function(){
dataType: 'json',
success: function(data){
g_openid = data.openid;
alert(g_openid);
cb(g_openid);
},
error: function(xhr,err){