bugfix
This commit is contained in:
parent
a5ff9a2aee
commit
4e2ddff63c
@ -10,7 +10,8 @@ dbname = get_module_dbname('unipay')
|
||||
async with db.sqlorContext(dbname) as sor:
|
||||
recs = await sor.R('organization', {'id': params_kw.customerid})
|
||||
if len(recs) < 0:
|
||||
return UiError(title="手工充值", f"客户机构不存在{params_kw.customerid}")
|
||||
return UiError(title="手工充值",
|
||||
message=f"客户机构不存在{params_kw.customerid}")
|
||||
|
||||
pl = PaymentLog(request._run_ns)
|
||||
plid = await pl.new_log(serid, params_kw.customerid, 'manual',
|
||||
@ -27,4 +28,5 @@ async with db.sqlorContext(dbname) as sor:
|
||||
pl.payed_log(plid)
|
||||
return UiMessage(title="手工充值",message=f"充值{params_kw.amount} 成功")
|
||||
exception(f'Exception:{db.e_except}')
|
||||
return UiError(title="手工充值", f"充值失败")
|
||||
return UiError(title="手工充值",
|
||||
message=f"充值失败")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user