【调整】修改版本号

【调整】错误记录表索引
【调整】新增monitor静态文件路由
This commit is contained in:
v-me-50
2025-07-17 16:09:00 +08:00
parent 85734cfcf8
commit 3e5a41a7e7
5 changed files with 10 additions and 2 deletions

View File

@@ -118,11 +118,15 @@ func Monitor() {
// 此处应该发送错误邮件
if checkErr != "" {
// 更新监控记录
valid := -1 // 状态为异常
if certInfo != nil && certInfo.Valid {
valid = 1 // 状态为正常
}
gs.Where("id=?", []interface{}{id}).Update(map[string]any{
"last_time": now.Format("2006-01-02 15:04:05"),
"except_end_time": now.Format("2006-01-02 15:04:05"),
"info": certJson,
"valid": -1, // 状态为异常
"valid": valid, // 状态为异常
})
// 新增错误记录
if certInfo == nil || !certInfo.Valid {