test
This commit is contained in:
@@ -120,7 +120,7 @@ class TrafficLightNetWorkModel {
|
||||
}
|
||||
loader {
|
||||
apiCall {
|
||||
getNetWorkApi().changeLight(map)
|
||||
getNetWorkApi("http://dzt-test.zhidaozhixing.com").changeLight(map)
|
||||
}
|
||||
}
|
||||
onSuccess {
|
||||
|
||||
@@ -192,15 +192,17 @@ class VipCarManager : IMogoOnMessageListener<VipMessage>, IMoGoTrafficLightListe
|
||||
}
|
||||
}
|
||||
|
||||
private fun turnLight(controlTime: Int) {
|
||||
if (result == null || mContext == null) return
|
||||
val locationClient = CallerMapUIServiceManager.getSingletonLocationClient(mContext!!)
|
||||
if (locationClient != null) {
|
||||
val bearing =
|
||||
locationClient.lastKnowLocation.bearing.toDouble()
|
||||
CallerLogger.d("$M_V2X$TAG", "turnLight -- bearing : $bearing")
|
||||
fun turnLight(controlTime: Int) {
|
||||
//todo test note
|
||||
// if (result == null || mContext == null) return
|
||||
// val locationClient = CallerMapUIServiceManager.getSingletonLocationClient(mContext!!)
|
||||
// if (locationClient != null) {
|
||||
// val bearing =
|
||||
// locationClient.lastKnowLocation.bearing.toDouble()
|
||||
CallerLogger.d("$M_V2X$TAG", "-- turnLight -- ")
|
||||
MogoTrafficLightManager.INSTANCE.turnLightToGreen(
|
||||
result!!.lightId, result!!.crossId, bearing, controlTime,
|
||||
// result!!.lightId, result!!.crossId, bearing, controlTime,
|
||||
100530, "10008", 6.403929233551025, controlTime,
|
||||
{
|
||||
if (it.sn == MoGoAiCloudClientConfig.getInstance().sn && it.code == 0) {
|
||||
CallerLogger.d("$M_V2X$TAG", "变灯请求成功")
|
||||
@@ -211,7 +213,7 @@ class VipCarManager : IMogoOnMessageListener<VipMessage>, IMoGoTrafficLightListe
|
||||
EventTypeEnum.TYPE_VIP_IDENTIFICATION.poiType
|
||||
)
|
||||
} else {
|
||||
val time = if (it.countDown / 60 > 1) {
|
||||
val time = if (it.countDown / 60 >= 1) {
|
||||
"${it.countDown / 60}分${it.countDown % 60}秒后重试"
|
||||
} else {
|
||||
"${it.countDown}秒后重试"
|
||||
@@ -228,7 +230,7 @@ class VipCarManager : IMogoOnMessageListener<VipMessage>, IMoGoTrafficLightListe
|
||||
CallerLogger.e("$M_V2X$TAG", "变灯请求失败 msg : $errorMsg")
|
||||
ToastUtils.showLong("服务异常,请稍后重试")
|
||||
})
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
private fun showWarning(
|
||||
|
||||
Reference in New Issue
Block a user