diff --git a/channel/wechatmp/active_reply.py b/channel/wechatmp/active_reply.py index 105ca23..c288ef6 100644 --- a/channel/wechatmp/active_reply.py +++ b/channel/wechatmp/active_reply.py @@ -21,6 +21,7 @@ class Query: # Make sure to return the instance that first created, @singleton will do that. channel = WechatMPChannel() try: + verify_server(web.input()) message = web.data() # todo crypto # logger.debug("[wechatmp] Receive request:\n" + webData.decode("utf-8")) msg = parse_message(message) diff --git a/channel/wechatmp/passive_reply.py b/channel/wechatmp/passive_reply.py index 3407198..3280472 100644 --- a/channel/wechatmp/passive_reply.py +++ b/channel/wechatmp/passive_reply.py @@ -20,6 +20,7 @@ class Query: def POST(self): try: + verify_server(web.input()) request_time = time.time() channel = WechatMPChannel() message = web.data() # todo crypto