xyxie пре 4 дана
родитељ
комит
50ddf1c547
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.LPush(cacheKey, message)
+					err := utils.Rc.Put(cacheKey, "1", time.Hour*24)
 					if err != nil {
 						errMsgList = append(errMsgList, fmt.Sprintf("添加巡检消息通知失败: recordId=%d, adminId=%d, edb_code=%s, err=%v", 
 							record.InspectionRecordId, adminId, edbInfo.EdbCode, err))