chanjunkai %!s(int64=5) %!d(string=hai) anos
pai
achega
89b91be67c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      controller/index.py

+ 2 - 2
controller/index.py

@@ -230,8 +230,8 @@ class oa2RtspStartView(TemplateView):
             #如果是美国,则进行负载均衡
             if RESP_SERVER_DOMAIN == RESP_SERVER_DOMAIN_DATA['EN']:
                 redisObj1 = RedisObject(db=1)
-                key1 = 'rtsp.zositech.org'
-                key2 = '18.222.107.129'
+                key1 = RESP_SERVER_DOMAIN_DATA['EN']
+                key2 = RESP_SERVER_DOMAIN_DATA['EN1']
                 redis_data1 = redisObj1.get_data(key1)
                 redis_data2 = redisObj1.get_data(key2)
                 mm=min(redis_data1,redis_data2)