[2.13.0] change the host location and fix bug of token problem
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package com.mogo.commons.constants
|
||||
|
||||
import com.mogo.commons.debug.DebugConfig
|
||||
|
||||
/**
|
||||
* 通用接口请求host
|
||||
*/
|
||||
class HostConst {
|
||||
companion object{
|
||||
const val DEVA_HOST = "http://dzt-deva.zhidaozhixing.com"
|
||||
const val DATA_SERVICE_HOST = "http://dzt-dataService.zhidaozhixing.com"
|
||||
const val REALTIME_LOCATION_HOST = "http://dzt-realtimeLocation.zhidaozhixing.com"
|
||||
const val GEOFENCE_HOST = "http://dzt-geoFenceCarService.zhidaozhixing.com"
|
||||
const val STRATEGY_PUSH_HOST = "http://dzt-strategyPush.zhidaozhixing.com"
|
||||
const val CAMERA_STREAM_HOST = "http://dzt-smartTransportationAiCloud.zhidaozhixing.com"
|
||||
const val OPEN_CAMERA_STREAM_HOST = "http://10.0.16.6:18080"
|
||||
const val CITY_HOST = "http://dzt-city.zhidaozhixing.com"
|
||||
const val SOCKET_CENTER_DOMAIN = "socketRegion"
|
||||
|
||||
// public static final String UPGRADE_APP_HOST_TEST = "http://10.0.200.12:32423?/";
|
||||
const val CMDB_HOST = "http://eagle-mis.zhidaozhixing.com/eagleEye-mis/cmdbapi/"
|
||||
|
||||
private const val HOST_DEV = "https://eagle-qa.zhidaozhixing.com"
|
||||
private const val HOST_RELEASE = "https://eagle-mis.zhidaozhixing.com"
|
||||
|
||||
fun getHost():String{
|
||||
return when (DebugConfig.getNetMode()) {
|
||||
DebugConfig.NET_MODE_DEV -> HOST_DEV
|
||||
DebugConfig.NET_MODE_QA -> HOST_DEV
|
||||
DebugConfig.NET_MODE_DEMO -> HOST_RELEASE
|
||||
DebugConfig.NET_MODE_RELEASE -> HOST_RELEASE
|
||||
else -> HOST_RELEASE
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user