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