|
@@ -28,6 +28,7 @@ async def login(
|
|
|
*,
|
|
|
request: Request,
|
|
|
code: str,
|
|
|
+ src: str = Query('yjdp'),
|
|
|
redirect: str = Query(None),
|
|
|
db: Session = Depends(get_db)
|
|
|
):
|
|
@@ -108,7 +109,7 @@ async def login(
|
|
|
code = new_guid()
|
|
|
redis_set_with_time("yzy_" + code, str(row.user_id), 600)
|
|
|
|
|
|
- goto_url = "/yjzp/#/yzylogin?code=" + code
|
|
|
+ goto_url = f"/{src}/#/yzylogin?code=" + code
|
|
|
if redirect is not None:
|
|
|
goto_url = goto_url + "&redirect="+redirect
|
|
|
logger.info("goto_url: {}", goto_url)
|