fix: 告警同步返回状态为正常,过程错误信息返回到响应

This commit is contained in:
TsMask
2025-07-23 10:58:52 +08:00
parent 0b4f04c33c
commit d8d3a979eb

View File

@@ -667,7 +667,7 @@ func (s APIRestController) ResolveAlarmHistory(c *gin.Context) {
} }
if len(errArr) > 0 { if len(errArr) > 0 {
c.JSON(200, resp.ErrData(errArr)) c.JSON(200, resp.OkData(errArr))
return return
} }
c.JSON(200, resp.Ok(nil)) c.JSON(200, resp.Ok(nil))