Browse Source

feat:xiugai

wangchuanjin 9 months ago
parent
commit
4dcaf2705e
1 changed files with 7 additions and 1 deletions
  1. 7 1
      api/internal/service/CoopHistoryService.go

+ 7 - 1
api/internal/service/CoopHistoryService.go

@@ -88,7 +88,13 @@ type PrListRes struct {
 }
 
 func GetPrList(req *types.CoopHistoryReq) *PrListRes {
-	redisKey := fmt.Sprintf(NetworkManageCoopHistory, req.PositionId, common.GetMd5String(fmt.Sprintf("%+v", req)))
+	redisFlag := ""
+	if req.Buyer != "" {
+		redisFlag = req.Buyer
+	} else if req.Pid != "" {
+		redisFlag = req.Pid
+	}
+	redisKey := fmt.Sprintf(NetworkManageCoopHistory, req.PositionId, req.ChannelType+"_"+redisFlag)
 	prListRes := &PrListRes{}
 	if rb, re := redis.GetNewBytes("newother", redisKey); re == nil && rb != nil {
 		json.Unmarshal(*rb, &re)