This commit is contained in:
yumoqing 2025-12-17 13:40:24 +08:00
parent 145e2139ae
commit 43a97484cb

View File

@ -43,6 +43,7 @@ async def get_pay_feerate(sor, channelid):
async with db.sqlorContext(dbname) as sor:
return await sor_get_pay_feerate(sor, channelid)
return None
async def sor_get_pay_feerate(sor, channelid):
env = ServerEnv()
dbname = env.get_module_dbname('unipay')
@ -58,8 +59,12 @@ where
and b.expired_date >= ${biz_date}$
and a.id = ${channelid}$
"""
recs = await sor.sqlExe(sql, {'channelid': channelid,
'biz_date': biz_date})
ns = {
'channelid': channelid,
'biz_date': biz_date
}
recs = await sor.sqlExe(sql, ns.copy())
debug(f'{recs=},{ns=}, {sql=}')
if len(recs) > 0:
return recs[0]
return None