|
@@ -21,6 +21,7 @@ class Query: |
|
|
# Make sure to return the instance that first created, @singleton will do that. |
|
|
# Make sure to return the instance that first created, @singleton will do that. |
|
|
channel = WechatMPChannel() |
|
|
channel = WechatMPChannel() |
|
|
try: |
|
|
try: |
|
|
|
|
|
verify_server(web.input()) |
|
|
message = web.data() # todo crypto |
|
|
message = web.data() # todo crypto |
|
|
# logger.debug("[wechatmp] Receive request:\n" + webData.decode("utf-8")) |
|
|
# logger.debug("[wechatmp] Receive request:\n" + webData.decode("utf-8")) |
|
|
msg = parse_message(message) |
|
|
msg = parse_message(message) |
|
|