update
This commit is contained in:
parent
2fa5c432f8
commit
827a9fcd7e
@ -51,9 +51,9 @@ async def affirmbz_order(ns={}):
|
|||||||
count = await getCustomerBalance(sor, orgid[0]['customerid'])
|
count = await getCustomerBalance(sor, orgid[0]['customerid'])
|
||||||
if count == None:
|
if count == None:
|
||||||
count = 0
|
count = 0
|
||||||
if count - float(orgid[0]['amount']) < 0:
|
#if count - float(orgid[0]['amount']) < 0:
|
||||||
pricedifference = count - round(orgid[0]['amount'],2)
|
#pricedifference = count - round(orgid[0]['amount'],2)
|
||||||
return {'status': False, 'msg': '账户余额不足','pricedifference': round(pricedifference,2)}
|
#return {'status': False, 'msg': '账户余额不足, count: %s' % str(count),'pricedifference': round(pricedifference,2)}
|
||||||
await order2bill(ns['orderid'], sor)
|
await order2bill(ns['orderid'], sor)
|
||||||
bills = await sor.R('bill', {'orderid': ns['orderid'], 'del_flg': '0'})
|
bills = await sor.R('bill', {'orderid': ns['orderid'], 'del_flg': '0'})
|
||||||
try:
|
try:
|
||||||
@ -902,6 +902,8 @@ async def baidu_confirm_refund_order(ns={}):
|
|||||||
await sor.U('user_action', {'id': ns_record_id, 'ordertype': 'REFUND', 'reason': '远程退款成功, 本地客户退款成功'})
|
await sor.U('user_action', {'id': ns_record_id, 'ordertype': 'REFUND', 'reason': '远程退款成功, 本地客户退款成功'})
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
|
db = DBPools()
|
||||||
|
async with db.sqlorContext('kboss') as sor:
|
||||||
ns_err_log = {
|
ns_err_log = {
|
||||||
'id': uuid(),
|
'id': uuid(),
|
||||||
'log_level': 'ERROR',
|
'log_level': 'ERROR',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user