Bladeren bron

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

locky 2 jaren geleden
bovenliggende
commit
b275b6f8af
1 gewijzigde bestanden met toevoegingen van 6 en 1 verwijderingen
  1. 6 1
      Controller/RegionController.py

+ 6 - 1
Controller/RegionController.py

@@ -340,8 +340,13 @@ class RegionView(View):
             if is_app:
             if is_app:
                 for country in country_qs:
                 for country in country_qs:
                     if country['country_id'] == 1:
                     if country['country_id'] == 1:
-                        country['api'] = 'https://www.dvema.com/'
                         country['push_api'] = 'https://push.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
                         break
             # AVSS
             # AVSS
             else:
             else: