Your Name 3 năm trước cách đây
mục cha
commit
e5ec8cd557
1 tập tin đã thay đổi với 15 bổ sung5 xóa
  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