updae
This commit is contained in:
parent
81655628c2
commit
80821599ea
@ -1,6 +1,7 @@
|
||||
async def user_action_record(ns={}):
|
||||
ns_dic_id = uuid() if not ns.get('id') else ns.get('id')
|
||||
ns_dic = {
|
||||
'id': uuid(),
|
||||
'id': ns_dic_id,
|
||||
'source': '百度智能云',
|
||||
'orderid': ns.get('orderid'),
|
||||
'ordertype': ns.get('ordertype'),
|
||||
@ -225,9 +226,10 @@ async def baidu_confirm_refund_order(ns={}):
|
||||
if data_ == {'success': True}:
|
||||
# if True:
|
||||
ns_record = {
|
||||
'id': uuid(),
|
||||
'orderid': ns.get('order_id'),
|
||||
'ordertype': 'REFUND',
|
||||
'userid': ns.get('userid'),
|
||||
'userid': ns.get('user_id'),
|
||||
'reason': '远程退款成功'
|
||||
}
|
||||
await user_action_record(ns_record)
|
||||
@ -264,6 +266,7 @@ async def baidu_confirm_refund_order(ns={}):
|
||||
db = DBPools()
|
||||
async with db.sqlorContext('kboss') as sor:
|
||||
await sor.U('baidu_orders', {'id': refund_id, 'refundstatus': '2'})
|
||||
await sor.U('user_action', {'id': ns_record.get('id'), 'ordertype': 'REFUND', 'reason': '远程退款成功, 本地客户退款成功'})
|
||||
|
||||
return {
|
||||
'status': True,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user