动力学列车数据配置调整

This commit is contained in:
tiger_zhou 2024-01-22 17:46:26 +08:00
parent d7a6b9a1c5
commit 7a92dab7b3
1 changed files with 1 additions and 3 deletions

View File

@ -181,9 +181,7 @@ func AddTrainStateNew(vs *VerifySimulation, status *state_proto.TrainState, conf
func createOrUpdateStateDynamicConfig(trainState *state_proto.TrainState, configTrainData dto.ConfigTrainData, trainEndsA dto.ConfigTrainEnds,
trainEndsB dto.ConfigTrainEnds) {
trainState.TrainDynamicConfig = service.TrainConfigToProtoConvert(&configTrainData)
if trainState.TrainDynamicConfig == nil {
slog.Error("")
} else {
if trainState.TrainDynamicConfig != nil {
copyTrainEnds(trainState, "TrainEndsA", trainEndsA)
copyTrainEnds(trainState, "TrainEndsB", trainEndsB)
}