lt пре 1 недеља
родитељ
комит
fe11705c83
1 измењених фајлова са 34 додато и 1 уклоњено
  1. 34 1
      操作命令/开服流程.txt

+ 34 - 1
操作命令/开服流程.txt

@@ -15,4 +15,37 @@ redis-cli -a tmKjD1ENs3HfZ7adzLJO! KEYS "10001:VirtualBattle_SELF_RECORD:*" | xa
 server[0]=测试1区,S1,2026-03-16 12:12:12,0,1
 server[1]=测试2区,S2,2026-03-16 12:12:12,0,1
 参数4:0,是否推荐区服,0-不推荐 1-推荐(默认),非必填;
-参数5:0,区服是否显示,0-不显示 1-显示(默认),非必填;
+参数5:0,区服是否显示,0-不显示 1-显示(默认),非必填;
+
+case serverproto.UnlockChargeType_UChargeType_DailyGift: //每日礼包弹窗
+			util.ErrorF("uid=%v dailyGift id=%v", this.role.GetUUid(), cfgData.Id)
+			if this.role.GetRoleLevel() >= val {
+				//是否需要根据累计充值来触发
+				if cfgData.Recharge > 0 {
+					rechargeTap := this.role.GetTotalRechargeTap()
+					if rechargeTap <= 0 || rechargeTap != cfgData.Recharge {
+						continue
+					}
+				}
+
+				//解锁特定超值礼包
+				unlockData := &serverproto.ActivitiesUnlockRechargeData{
+					ActivitiesId: cfgData.Id,
+					StartTime:    nowTime,
+					EndTime:      nowTime + cfgData.DurationTime,
+				}
+				this.superUnlockChargeList = append(this.superUnlockChargeList, unlockData)
+				bAdd = true
+				if tmpVal == nil {
+					tmpVal = &serverproto.KeyValueType{Key: cfgData.ProductId, Value: 1}
+				} else {
+					tmpVal.Value++
+				}
+				this.unlockChargeHasList[tmpVal.Key] = tmpVal
+				continue
+			}
+
+
+this.SuperChargeUnlockCheck(serverproto.UnlockChargeType_UChargeType_DailyGift, &SuperChargeUnlockST{oldValue: 0})
+
+UChargeType_DailyGift   = 21; //每日弹窗                  [21:保底道具id]