From 45ee8653c2aa6fe86203751472d3f2b4140fffa6 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 28 Aug 2025 09:58:44 +0800 Subject: [PATCH] bugfix --- dapi/dapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dapi/dapi.py b/dapi/dapi.py index 6fea61d..a617373 100644 --- a/dapi/dapi.py +++ b/dapi/dapi.py @@ -34,7 +34,7 @@ async def get_apikey_user(sor, apikey, client_ip): f = get_serverenv('password_encode') apikey = f(apikey) sql = """select u.*, b.allowedips from downapikey a, users u, downapp b -where a.userid = b.id +where a.userid = u.id and b.id = a.dappid and apikey=${apikey}$ and expired_date > ${today}$"""