fix: 告警同步返回状态为正常,过程错误信息返回到响应
This commit is contained in:
@@ -667,7 +667,7 @@ func (s APIRestController) ResolveAlarmHistory(c *gin.Context) {
|
||||
}
|
||||
|
||||
if len(errArr) > 0 {
|
||||
c.JSON(200, resp.ErrData(errArr))
|
||||
c.JSON(200, resp.OkData(errArr))
|
||||
return
|
||||
}
|
||||
c.JSON(200, resp.Ok(nil))
|
||||
|
||||
Reference in New Issue
Block a user