|
@@ -24,10 +24,10 @@ class DeviceCommonView(View):
|
|
|
|
|
|
@staticmethod
|
|
@staticmethod
|
|
def get_domain(response):
|
|
def get_domain(response):
|
|
- data = {
|
|
|
|
- "cn": {"server": "https://www.zositechc.cn/", "push": "https://push.zositechc.cn/"},
|
|
|
|
- "us": {"server": "https://www.dvema.com/", "push": "https://push.dvema.com/"},
|
|
|
|
- "eur": {"server": "https://www.zositeche.com/", "push": "https://push.zositeche.com/"},
|
|
|
|
- "test": {"server": "https://test.zositechc.cn/", "push": "https://test.push.zositechc.cn/"},
|
|
|
|
- }
|
|
|
|
- return response.json(0, data)
|
|
|
|
|
|
+ data = [
|
|
|
|
+ {"title": "国内", "server": "https://www.zositechc.cn/", "push": "https://push.zositechc.cn/"},
|
|
|
|
+ {"title": "美洲", "server": "https://www.dvema.com/", "push": "https://push.dvema.com/"},
|
|
|
|
+ {"title": "欧洲", "server": "https://www.zositeche.com/", "push": "https://push.zositeche.com/"},
|
|
|
|
+ {"title": "测试", "server": "https://test.zositechc.cn/", "push": "https://test.push.zositechc.cn/"},
|
|
|
|
+ ]
|
|
|
|
+ return response.json(0, data)
|