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))