Browse Source

feat:xiugai

wangchuanjin 1 năm trước cách đây
mục cha
commit
dc1ac794ea
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      api/internal/service/CoopHistoryService.go

+ 5 - 5
api/internal/service/CoopHistoryService.go

@@ -331,14 +331,14 @@ func LastTimeCoop(buyerId, ent, stype string) (bool, int64) {
 
 //
 func LastTimeCoopBath(positionId int64, buyerIds, winners, agencys []string) (map[string]map[string]*Cooperate, map[string]map[string]*Cooperate) {
-	if len(buyerIds) > 10 {
-		buyerIds = buyerIds[:10]
+	if len(buyerIds) > 50 {
+		buyerIds = buyerIds[:50]
 	}
-	if len(winners) > 10 {
-		winners = winners[:10]
+	if len(winners) > 50 {
+		winners = winners[:50]
 	}
 	if len(agencys) > 10 {
-		agencys = agencys[:10]
+		agencys = agencys[:50]
 	}
 	adiffb, agency := map[string]map[string]*Cooperate{}, map[string]map[string]*Cooperate{}
 	if len(buyerIds) == 0 {