bugfix
This commit is contained in:
parent
d5072cb2ea
commit
6d1abc41cb
@ -5,8 +5,9 @@ try:
|
||||
async with get_sor_context(env, 'dapi') as sor:
|
||||
orgid = await get_userorgid()
|
||||
userid = await get_user()
|
||||
dappid = uuid()
|
||||
ns = {
|
||||
"id": uuid(),
|
||||
"id": dappid
|
||||
"name": params_kw.appname,
|
||||
"description": params_kw.description,
|
||||
"secretkey": password_encode(uuid()),
|
||||
@ -16,7 +17,7 @@ try:
|
||||
await sor.C('downapp', ns)
|
||||
ns1 = {
|
||||
"id": uuid(),
|
||||
"dappid": ns['id'],
|
||||
"dappid": dappid
|
||||
"userid": userid,
|
||||
"apikey": password_encode(uuid()),
|
||||
"enabled_date": curDateString(),
|
||||
|
||||
@ -20,7 +20,11 @@ try:
|
||||
and b.enabled_date <= ${today}$
|
||||
and b.expired_date > ${today}$
|
||||
"""
|
||||
recs = await sor.sqlExe(sql, {'orgid': orgid})
|
||||
recs = await sor.sqlExe(sql, {
|
||||
'orgid': orgid,
|
||||
'userid': userid,
|
||||
'today': today
|
||||
})
|
||||
return {
|
||||
"status": "ok",
|
||||
"data": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user