Jelajahi Sumber

Merge remote-tracking branch 'remotes/origin/locky' into test

Ansjer 2 tahun lalu
induk
melakukan
b5e8cb48cd
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      Controller/RegionController.py

+ 5 - 2
Controller/RegionController.py

@@ -343,10 +343,13 @@ class RegionView(View):
                         country['api'] = 'https://www.dvema.com/'
                         country['push_api'] = 'https://push.dvema.com/'
                         break
-            # AVSS暂时返回美洲域名
+            # AVSS
             else:
                 for country in country_qs:
-                    country['api'] = 'https://www.dvema.com/'
+                    if country['country_id'] == 1:
+                        country['api'] = 'https://www.zositechc.cn/'
+                    else:
+                        country['api'] = 'https://www.dvema.com/'
 
             return response.json(0, list(country_qs))
         except Exception as e: