bugfix
This commit is contained in:
parent
e200da1276
commit
ca21ab2f1c
@ -57,20 +57,20 @@ def get_dbname():
|
||||
return dbname
|
||||
|
||||
def deerer(myappid, apikey, secretkey):
|
||||
t = time()
|
||||
txt = f'{t}:{apikey}'
|
||||
t = time()
|
||||
txt = f'{t}:{apikey}'
|
||||
k = secretkey.encode('utf-8')
|
||||
cyber = aes_encrypt_ecb(k, txt)
|
||||
return f'Deerer {appid}-:-{cyber}'
|
||||
cyber = aes_encrypt_ecb(k, txt)
|
||||
return f'Deerer {appid}-:-{cyber}'
|
||||
|
||||
def bearer(apikey):
|
||||
return f'Bearer {apikey}'
|
||||
return f'Bearer {apikey}'
|
||||
|
||||
async def sync_users(request, upappid, userid):
|
||||
db = DBPools()
|
||||
dbname = get_dbname()
|
||||
async with db.sqlorContext(dbname) as sor:
|
||||
upapp = await get_upapp(sor, upappid)
|
||||
db = DBPools()
|
||||
dbname = get_dbname()
|
||||
async with db.sqlorContext(dbname) as sor:
|
||||
upapp = await get_upapp(sor, upappid)
|
||||
|
||||
class UAPI:
|
||||
def __init__(self, request, env=DictObject(), sor=None):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user