This commit is contained in:
xzb 2023-10-16 10:37:59 +08:00
parent abc4dd2d30
commit b2d079d737

View File

@ -273,7 +273,7 @@ func signalOperation(c *gin.Context) {
if err := c.ShouldBind(&req); err != nil { if err := c.ShouldBind(&req); err != nil {
panic(dto.ErrorDto{Code: dto.ArgumentParseError, Message: err.Error()}) panic(dto.ErrorDto{Code: dto.ArgumentParseError, Message: err.Error()})
} }
// simulation := checkDeviceDataAndReturn(req.SimulationId) simulation := checkDeviceDataAndReturn(req.SimulationId)
slog.Info("传入状态参数", req) slog.Info("传入状态参数", req)
memory.ChangeSignalState(simulation, req.MapId, req.DeviceId, req.Aspect) memory.ChangeSignalState(simulation, req.MapId, req.DeviceId, req.Aspect)
c.JSON(http.StatusOK, "ok") c.JSON(http.StatusOK, "ok")