修改设置

This commit is contained in:
Joucks Hua 2019-08-12 10:39:28 +08:00
parent 12daac015e
commit b4cf12519c

View File

@ -80,7 +80,7 @@ func UpdateEmailInfo(c *gin.Context) {
status = ?, status = ?,
update_time = ? update_time = ?
where id = ?;` where id = ?;`
dbUtil.Update(sql, info, 0, time.Now().Format("2006-01-02 15:04"), id) dbUtil.Update(sql, info, time.Now().Format("2006-01-02 15:04"), id)
c.JSON(http.StatusOK, error.ErrSuccessNull()) c.JSON(http.StatusOK, error.ErrSuccessNull())
} }
/*更新警告邮件通知*/ /*更新警告邮件通知*/
@ -101,7 +101,7 @@ func UpdateAlertMail(c *gin.Context) {
status = ?, status = ?,
update_time = ? update_time = ?
where id = ?;` where id = ?;`
dbUtil.Update(sql, info, 0, time.Now().Format("2006-01-02 15:04"), id) dbUtil.Update(sql, info, time.Now().Format("2006-01-02 15:04"), id)
c.JSON(http.StatusOK, error.ErrSuccessNull()) c.JSON(http.StatusOK, error.ErrSuccessNull())
} }