Explorar el Código

授权问题修改

lingmin_package@163.com hace 3 semanas
padre
commit
473685b459
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/app/services/oauth_service.py

+ 2 - 2
src/app/services/oauth_service.py

@@ -239,10 +239,10 @@ class OAuthService:
         cursor = conn.cursor()
         cursor = conn.cursor()
         
         
         try:
         try:
-            # 从数据库查找授权码 AND is_deleted = 0
+            # 从数据库查找授权码 
             cursor.execute("""
             cursor.execute("""
                 SELECT user_id, app_id, redirect_uri, expires_at, used
                 SELECT user_id, app_id, redirect_uri, expires_at, used
-                FROM t_oauth_authorization_codes
+                FROM t_oauth_authorization_codes AND is_deleted = 0
                 WHERE code = %s 
                 WHERE code = %s 
             """, (code,))
             """, (code,))