Compare commits

..

No commits in common. "2f1450e96a1ca1113ff36ff051b0cbceedac3c7d" and "a4692cde9f358f1e8add54baa8835dbc8d0b248a" have entirely different histories.

View File

@ -110,7 +110,7 @@ async def affirmbz_order(ns={}):
return {'status': True, 'msg': '支付成功'}
except Exception as error:
await sor.rollback()
return {'status': False, 'msg': str(error)}
raise error
async def baidu_new_update_resouce(ns={}):
@ -615,12 +615,9 @@ async def get_baidu_orderlist(ns={}):
# 更新资源时间 资源id
# if order_type == 'NEW':
# await baidu_new_update_resouce(ns)
# with open('baiducloud_orderlist.log', 'a+') as f:
# now_time = time.strftime('%Y-%m-%d %H:%M:%S')
# f.write(now_time + str({'orderid': bz_ns.get('id'), 'originalprice': bz_ns.get('originalprice'), 'servicename': bz_ns.get('servicename'), 'amount': total_price}))
return {
'status': True,
'orderid': bz_ns.get('id'),
'orderid': bz_ns['id'],
'originalprice': bz_ns.get('originalprice'),
'servicename': bz_ns.get('servicename'),
'amount': total_price
@ -716,7 +713,7 @@ async def update_baidu_order_list(ns={}):
async def baidu_confirm_refund_order(ns={}):
# ns = {
# 'order_id': ["13f3518648054796abf7f3d00ed611bf"],
# 'order_id': ["03ee8d08da79458b8f8d3157d3498330", "e711729606024080bf9613d975294616"],
# 'userid': 'KsKhCUPizQyGiw3L1WVRy'
# }
import asyncio