This commit is contained in:
guange 2016-07-09 10:34:05 +08:00
parent 09a97fc9d8
commit 99a27766be
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ class WechatsController < ActionController::Base
def join_request(request)
openid = request[:FromUserName]
wl = WechatLog.where(openid: openid).order('id desc').first
wl = WechatLog.where("openid = '#{openid}' and request_raw like '%\"Event\":\"click\"%'").order('id desc').first
wl && JSON(wl.request_raw)["EventKey"] == 'JOIN_CLASS'
end