Your Name %!s(int64=3) %!d(string=hai) anos
pai
achega
e5ec8cd557
Modificáronse 1 ficheiros con 15 adicións e 5 borrados
  1. 15 5
      step_question/apis/main.py

+ 15 - 5
step_question/apis/main.py

@@ -192,31 +192,41 @@ async def coffee_get():
 
 @app.get("/220")
 async def redirect220():
-    response = RedirectResponse(url='/a1/index-line.html')
+#    response = RedirectResponse(url='/a1/index-line.html')
+    response = RedirectResponse(url='https://line.me/R/ti/p/@064mjcjv')
+
     response.set_cookie(key="area", value="220", domain="q.ptt.cx")
     return response
 
 @app.get("/242")
 async def redirect242():
-    response = RedirectResponse(url='/a1/index-line.html')
+#    response = RedirectResponse(url='/a1/index-line.html')
+    response = RedirectResponse(url='https://line.me/R/ti/p/@064mjcjv')
+
     response.set_cookie(key="area", value="242", domain="q.ptt.cx")
     return response
 
 @app.get("/241")
 async def redirect241():
-    response = RedirectResponse(url='/a1/index-line.html')
+#    response = RedirectResponse(url='/a1/index-line.html')
+    response = RedirectResponse(url='https://line.me/R/ti/p/@064mjcjv')
+
     response.set_cookie(key="area", value="241", domain="q.ptt.cx")
     return response
 
 @app.get("/112")
 async def redirect112():
-    response = RedirectResponse(url='/a1/index-line.html')
+#    response = RedirectResponse(url='/a1/index-line.html')
+    response = RedirectResponse(url='https://line.me/R/ti/p/@064mjcjv')
+
     response.set_cookie(key="area", value="112", domain="q.ptt.cx")
     return response
 
 @app.get("/111")
 async def redirect111():
-    response = RedirectResponse(url='/a1/index-line.html')
+#    response = RedirectResponse(url='/a1/index-line.html')
+    response = RedirectResponse(url='https://line.me/R/ti/p/@064mjcjv')
+
     response.set_cookie(key="area", value="111", domain="q.ptt.cx")
     return response