diff --git a/video-gen-api/app/api/v1/user_oauth.py b/video-gen-api/app/api/v1/user_oauth.py index aaa4cd72..1bb6c43c 100644 --- a/video-gen-api/app/api/v1/user_oauth.py +++ b/video-gen-api/app/api/v1/user_oauth.py @@ -86,7 +86,7 @@ async def juliang_callback( await get_token(auth_code, user_id, app_id, db) return { - "message": "授权成功,这里需要跳转页面路径到 /user-oauth/oauth_list", + "message": "授权成功", "code": 0, } @@ -96,7 +96,10 @@ async def juliang_callback( detail=str(e), ) except HTTPException: - raise + raise HTTPException( + status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, + detail=f"授权失败: {str(e)}", + ) except Exception as e: raise HTTPException( status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,