main #34

Merged
charles merged 191 commits from main into prod 2025-11-19 16:18:39 +08:00
Showing only changes of commit 2382d3f671 - Show all commits

View File

@ -445,7 +445,7 @@ async def get_baidu_orderlist(ns={}):
# 获取余额
user_balance = await getCustomerBalance(sor, orgid[0]['id'])
# 判断余额是否大于50
if user_balance < 50:
if user_balance < 5000000:
await sor.rollback()
paydata = {'queryAccountId': baidu_users[0]['baidu_id'], 'orderIds': [ns.get('order_id')]}
ns_format = '&'.join(['%s=%s' % (k, v) for k, v in ns.items()])
@ -465,12 +465,14 @@ async def get_baidu_orderlist(ns={}):
'orderid': ns.get('order_id'),
'ordertype': orders[0]['type'],
'userid': ns.get('userid'),
'reason': '后付费 该账号余额不足50无法完成购买'
# 'reason': '后付费 该账号余额不足50无法完成购买'
'reason': '后付费 功能暂未开放,请您联系售后人员协助购买'
}
await user_action_record(ns_record)
return {
'status': False,
'msg': '您的余额小于该产品的起购金额50元, 目前无法购买立即充值'
'msg': '后付费 功能暂未开放,请您联系售后人员协助购买'
# 'msg': '您的余额小于该产品的起购金额50元, 目前无法购买立即充值'
}
# 实付价格
total_price = 0