[m1]
[1.0.2] [url 全部由urlConfg.json 来进行配置]
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"mogo": {
|
||||
"qa": {
|
||||
"och_url": "https://tech-qa.zhidaohulian.com"
|
||||
},
|
||||
"online": {
|
||||
"och_url": "https://tech-qa.zhidaohulian.com"
|
||||
},
|
||||
"demo": {
|
||||
"och_url": "https://tech-qa.zhidaohulian.com"
|
||||
}
|
||||
},
|
||||
"dali": {
|
||||
"qa": {
|
||||
"och_url": "https://tech-qa.zhidaohulian.com"
|
||||
},
|
||||
"online": {
|
||||
"och_url": "https://tech-qa.zhidaohulian.com"
|
||||
},
|
||||
"demo": {
|
||||
"och_url": "https://tech-qa.zhidaohulian.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,7 +28,7 @@ project.android.applicationVariants.all { variant ->
|
||||
Object readFileToJson(project, env) {
|
||||
try {
|
||||
// 加载config.json 文件
|
||||
File file = new File("${rootDir}/app/config.json")
|
||||
File file = new File("${rootDir}/app/urlConfig.json")
|
||||
def jsonSlurper = new JsonSlurper()
|
||||
// 解析json
|
||||
def config = jsonSlurper.parse(file)
|
||||
|
||||
48
app/urlConfig.json
Normal file
48
app/urlConfig.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"mogo": {
|
||||
"qa": {
|
||||
"och_url": "https://tech-qa.zhidaohulian.com",
|
||||
"shuttle_url": "https://och-driver-qa.zhidaozhixing.com",
|
||||
"passport_url": "",
|
||||
"socket_base_url": "",
|
||||
"socket_tech_url": ""
|
||||
},
|
||||
"online": {
|
||||
"och_url": "http://tech-dev.zhidaohulian.com",
|
||||
"shuttle_url": "https://och-driver.zhidaozhixing.com",
|
||||
"passport_url": "",
|
||||
"socket_base_url": "",
|
||||
"socket_tech_url": ""
|
||||
},
|
||||
"demo": {
|
||||
"och_url": "http://tech-dev.zhidaohulian.com",
|
||||
"shuttle_url": "https://och-driver-dev.zhidaozhixing.com",
|
||||
"passport_url": "",
|
||||
"socket_base_url": "",
|
||||
"socket_tech_url": ""
|
||||
}
|
||||
},
|
||||
"dali": {
|
||||
"qa": {
|
||||
"och_url": "https://tech-qa.zhidaohulian.com",
|
||||
"shuttle_url": "https://och-driver-qa.zhidaozhixing.com",
|
||||
"passport_url": "https://och-a.zhidaozhixing.com/arch/passport/",
|
||||
"socket_base_url": "https://och-a.zhidaozhixing.com/arch/push/",
|
||||
"socket_tech_url": "https://och-a.zhidaozhixing.com/arch/"
|
||||
},
|
||||
"online": {
|
||||
"och_url": "https://tech-qa.zhidaohulian.com",
|
||||
"shuttle_url": "https://och-driver.zhidaozhixing.com",
|
||||
"passport_url": "https://och-a.zhidaozhixing.com/arch/passport/",
|
||||
"socket_base_url": "https://och-a.zhidaozhixing.com/arch/push/",
|
||||
"socket_tech_url": "https://och-a.zhidaozhixing.com/arch/"
|
||||
},
|
||||
"demo": {
|
||||
"och_url": "https://tech-qa.zhidaohulian.com",
|
||||
"shuttle_url": "https://och-driver-dev.zhidaozhixing.com",
|
||||
"passport_url": "https://och-a.zhidaozhixing.com/arch/passport/",
|
||||
"socket_base_url": "https://och-a.zhidaozhixing.com/arch/push/",
|
||||
"socket_tech_url": "https://och-a.zhidaozhixing.com/arch/"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user