Explorar o código

完善app地区选择中国返回的域名

locky %!s(int64=2) %!d(string=hai) anos
pai
achega
b275b6f8af
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      Controller/RegionController.py

+ 6 - 1
Controller/RegionController.py

@@ -340,8 +340,13 @@ class RegionView(View):
             if is_app:
                 for country in country_qs:
                     if country['country_id'] == 1:
-                        country['api'] = 'https://www.dvema.com/'
                         country['push_api'] = 'https://push.dvema.com/'
+                        if 'Zosi' in app_name:
+                            country['api'] = 'https://api.zositech2.com/'
+                        elif 'Loocam' in app_name:
+                            country['api'] = 'https://api.loocam2.com/'
+                        else:
+                            country['api'] = 'https://www.dvema.com/'
                         break
             # AVSS
             else: