| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 1、在mongo数据库:x5_tk_login 中添加服务器信息,注意设置开服时间,当前时间到了开服时间,app中才会看到服务器
- 2、在北京时间开服当天(重点),在机器上的/data/java目录执行:./openserver.sh x && cd gameserver1-x && ./run.sh start,x为服务器id
- docker exec -it <container_name_or_id> mongosh
- ro开启新服打开支付
- http://43.156.13.116:8086/v1/pay/openServer?sid=1&name=1%E5%8C%BA&time=2025-11-20%2012:00:00&gameid=119&signkey=92ddb83717ed91bb555dc894c06c110e
- echo "cd /data2/java/gameserver1-12 && ./run.sh start" | at 9:00 2026-05-01
- docker exec -it <容器名或ID> /bin/bash
- redis-cli -a tmKjD1ENs3HfZ7adzLJO! KEYS "10001:VirtualBattle_SELF_RECORD:*" | xargs redis-cli -a tmKjD1ENs3HfZ7adzLJO! DEL
- 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-显示(默认),非必填;
- 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]
|