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