fix bug of code miss

This commit is contained in:
zhongchao
2021-11-27 14:03:36 +08:00
parent be6a4b76f3
commit 01a8dc0e59
2 changed files with 10 additions and 2 deletions

View File

@@ -7,7 +7,6 @@ import com.mogo.eagle.core.data.trafficlight.TrafficLightDetail
import com.mogo.eagle.core.function.api.trafficlight.ITrafficLightProvider
import com.mogo.eagle.core.function.v2x.trafficlight.TrafficLightConst.Companion.MODULE_NAME
import com.mogo.eagle.core.function.v2x.trafficlight.core.MogoTrafficLightManager
import com.mogo.utils.logger.Logger
@Route(path = MogoServicePaths.PATH_TRAFFIC_LIGHT)
class TrafficLightProvider : ITrafficLightProvider {
@@ -31,10 +30,18 @@ class TrafficLightProvider : ITrafficLightProvider {
lightId: Int,
crossingNo: String,
heading: Double,
controlTime: Int,
onSuccess: (() -> Unit),
onError: ((String) -> Unit)
) {
return MogoTrafficLightManager.INSTANCE.turnLightToGreen(lightId, crossingNo,heading,onSuccess, onError)
return MogoTrafficLightManager.INSTANCE.turnLightToGreen(
lightId,
crossingNo,
heading,
controlTime,
onSuccess,
onError
)
}
override fun onDestroy() {

View File

@@ -20,6 +20,7 @@ interface ITrafficLightProvider : IMoGoFunctionServerProvider {
lightId: Int,
crossingNo: String,
heading: Double,
controlTime:Int,
onSuccess: (() -> Unit),
onError: ((String) -> Unit)
)