瀏覽代碼

feat: verify server when receive message in wechatmp

develop
lanvent 1 年之前
父節點
當前提交
b5df6faadf
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. +1
    -0
      channel/wechatmp/active_reply.py
  2. +1
    -0
      channel/wechatmp/passive_reply.py

+ 1
- 0
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)


+ 1
- 0
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


Loading…
取消
儲存