列车参数请求动力学url调整

This commit is contained in:
tiger_zhou 2024-01-25 09:30:19 +08:00
parent ec48b5f48a
commit b89f4e4b3f

View File

@ -205,7 +205,7 @@ func (d *dynamics) TrainOperationConfig(req *message.TrainOperationConfig) error
return nil
}
data, _ := json.Marshal(req)
url := d.buildUrl("/api/config")
url := d.buildUrl("/api/config/")
resp, err := d.httpClient.Post(url, "application/json", bytes.NewBuffer(data))
if err != nil {
return fmt.Errorf("动力学移除列车请求异常: %v", err)