dev_pull v20160709_2
guange 9 years ago
parent 09a97fc9d8
commit 99a27766be

@ -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

Loading…
Cancel
Save