浏览代码

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

locky 2 年之前
父节点
当前提交
b275b6f8af
共有 1 个文件被更改,包括 6 次插入1 次删除
  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: