bugfix
This commit is contained in:
parent
9765acb850
commit
f101490df0
@ -175,7 +175,7 @@ async def alipay_notify(request):
|
|||||||
|
|
||||||
async def setup_callback_path(app):
|
async def setup_callback_path(app):
|
||||||
app.router.add_post('/unipay/notify/wechat', wechat_notify)
|
app.router.add_post('/unipay/notify/wechat', wechat_notify)
|
||||||
app.router.add_post('/unipay/notify/alipay', wechat_notify)
|
app.router.add_post('/unipay/notify/alipay', alipay_notify)
|
||||||
|
|
||||||
# callback url= "/unipay/notify/{provider}"
|
# callback url= "/unipay/notify/{provider}"
|
||||||
|
|
||||||
|
|||||||
@ -244,7 +244,8 @@ class WechatGateway(Gateway):
|
|||||||
payer info
|
payer info
|
||||||
"""
|
"""
|
||||||
headers = request.headers
|
headers = request.headers
|
||||||
body = await request.read().decode('utf-8')
|
body = await request.read()
|
||||||
|
body = body.decode('utf-8')
|
||||||
await self._verify_callback(headers, body)
|
await self._verify_callback(headers, body)
|
||||||
|
|
||||||
payload = json.loads(body)
|
payload = json.loads(body)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user