libushang 8 miesięcy temu
rodzic
commit
0a31f78443
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      routers/prod_api/zwrz.py

+ 2 - 1
routers/prod_api/zwrz.py

@@ -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)