This commit is contained in:
yumoqing 2025-08-08 17:50:14 +08:00
parent 8355aacdab
commit 703b1b50bb

View File

@ -22,12 +22,12 @@ async def sor_get_callerid(sor, orgid):
sql = """select a.ownerid from upappkey a, users b
where b.orgid = ${orgid}$
and a.ownerid = b.id"""
recs = await sor.sqlExe(sql, {'orgid': orgid})
cnt = len(recs)
if cnt == 0:
return None
i = randint(0, cnt - 1)
return recs[i].ownerid
recs = await sor.sqlExe(sql, {'orgid': orgid})
cnt = len(recs)
if cnt == 0:
return None
i = randint(0, cnt - 1)
return recs[i].ownerid
async def get_uapi(upappid, apiname):
dbname = get_dbname()