uapi
This commit is contained in:
parent
b58db772b6
commit
a36c413274
@ -37,13 +37,12 @@ where a.orgid = b.orgid
|
||||
and ${today}$ < a.expired_date
|
||||
"""
|
||||
recs = await sor.sqlExe(sql, {
|
||||
'id': self.fiid,
|
||||
'today': curDateString()
|
||||
'id': self.id,
|
||||
'today': curDateTime()
|
||||
})
|
||||
if len(recs) > 0:
|
||||
r = recs[0]
|
||||
return r.quota, r.expired_date
|
||||
return None, None
|
||||
|
||||
async def get_service_params(self,orgid):
|
||||
""" 根据 orgid 从数据库获取服务参数 (仅 upappid),假设 service_opts 表返回单条记录。 """
|
||||
@ -132,7 +131,7 @@ where a.orgid = b.orgid
|
||||
realpath = ns.get('realpath', '')
|
||||
fiid = ns.get('fiid', '')
|
||||
id = ns.get('id', '')
|
||||
orgid = ns.get('orgid', '')
|
||||
orgid = ns.get('ownerid', '')
|
||||
db_type = ''
|
||||
api_service = APIService()
|
||||
debug(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user