libushang hace 6 meses
padre
commit
e1f0726af8
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      routers/api/eventManagement/checkin.py

+ 4 - 2
routers/api/eventManagement/checkin.py

@@ -38,7 +38,8 @@ async def get_qrcode(
     url = url.replace("qrcode", "qrcode2") + "&r="+rnd()
 
     if settings.IS_STAGE:
-        url = url.replace(request.url.hostname, "120.241.74.139:8086")
+        # 120.241.74.139
+        url = url.replace(request.url.hostname, "yjdev.tjp.com.cn:8086")
         # url = url.replace(request.url.hostname, "19.155.220.206:8086")
     #    logger.info('替换到互联网ip: {}', url)   
 
@@ -70,7 +71,8 @@ async def get_qrcode2(
         # qrcode_str = f"http://19.155.220.209/api/event_management/event?event_id={event_id}"
         detail_url = YzyApi.format_redirect_url(redirect_url)
     else:
-        detail_url = "http://120.241.74.139:8086/yjxp/#" + redirect_url
+        # 120.241.74.139
+        detail_url = "http://yjdev.tjp.com.cn:8086/yjxp/#" + redirect_url
 
     return RedirectResponse(detail_url)