Browse Source

授权码查询问题修改

lingmin_package@163.com 3 tuần trước cách đây
mục cha
commit
edec53d8a3
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/app/services/oauth_service.py

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

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