bugfix
This commit is contained in:
parent
bd76c34b34
commit
bde6ae9d75
@ -139,15 +139,15 @@ async def wechat_notify(request):
|
|||||||
debug("wechat notify called .......")
|
debug("wechat notify called .......")
|
||||||
provider = 'wechat'
|
provider = 'wechat'
|
||||||
if PROVIDERS[provider] is None:
|
if PROVIDERS[provider] is None:
|
||||||
e = Exception(f'{provider} cannot pay')
|
e = Exception(f'{provider} cannot pay')
|
||||||
exception(f'{e}')
|
exception(f'{e}')
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
data = await PROVIDERS[provider].handle_notify(request)
|
data = await PROVIDERS[provider].handle_notify(request)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
e = Exception(f'{provider} cannot pay')
|
e = Exception(f'{provider} cannot pay')
|
||||||
exception(f'{e}')
|
exception(f'{e}')
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
await unipay_accounting(request, data)
|
await unipay_accounting(request, data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -158,15 +158,15 @@ async def alipay_notify(request):
|
|||||||
debug("alipay notify called .......")
|
debug("alipay notify called .......")
|
||||||
provider = 'alipay'
|
provider = 'alipay'
|
||||||
if PROVIDERS[provider] is None:
|
if PROVIDERS[provider] is None:
|
||||||
e = Exception(f'{provider} cannot pay')
|
e = Exception(f'{provider} cannot pay')
|
||||||
exception(f'{e}')
|
exception(f'{e}')
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
data = await PROVIDERS[provider].handle_notify(request)
|
data = await PROVIDERS[provider].handle_notify(request)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
e = Exception(f'{provider} cannot pay')
|
e = Exception(f'{provider} cannot pay')
|
||||||
exception(f'{e}')
|
exception(f'{e}')
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
await unipay_accounting(request, data)
|
await unipay_accounting(request, data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user