From e1f1c6fbc08af9c6565887825e0356c2b05507e3 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Sat, 2 Apr 2016 08:05:49 +0800 Subject: [PATCH] =?UTF-8?q?openid=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/mobile/apis/activities.rb | 2 +- public/javascripts/wechat/auth.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/api/mobile/apis/activities.rb b/app/api/mobile/apis/activities.rb index 15f244715..9d75b8560 100644 --- a/app/api/mobile/apis/activities.rb +++ b/app/api/mobile/apis/activities.rb @@ -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]) diff --git a/public/javascripts/wechat/auth.js b/public/javascripts/wechat/auth.js index e2f8424d4..f9c2917fc 100644 --- a/public/javascripts/wechat/auth.js +++ b/public/javascripts/wechat/auth.js @@ -26,7 +26,6 @@ $(function(){ dataType: 'json', success: function(data){ g_openid = data.openid; - alert(g_openid); cb(g_openid); }, error: function(xhr,err){