xyxie 4 天之前
父节点
当前提交
a6530c899d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/edb_inspection.go

+ 1 - 1
services/edb_inspection.go

@@ -277,7 +277,7 @@ func AddEdbInspectionRecord(cont context.Context) (err error) {
 				}else {
 					// 发送消息
 					cacheKey := fmt.Sprintf("%s%d", utils.CACHE_EDB_INSPECTION_MESSAGE, adminId)
-					err := utils.Rc.Put(cacheKey, "1", time.Hour*24)
+					err := utils.Rc.LPush(cacheKey, message)
 					if err != nil {
 						errMsgList = append(errMsgList, fmt.Sprintf("添加巡检消息通知失败: recordId=%d, adminId=%d, edb_code=%s, err=%v", 
 							record.InspectionRecordId, adminId, edbInfo.EdbCode, err))