开服流程.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. 1、在mongo数据库:x5_tk_login 中添加服务器信息,注意设置开服时间,当前时间到了开服时间,app中才会看到服务器
  2. 2、在北京时间开服当天(重点),在机器上的/data/java目录执行:./openserver.sh x && cd gameserver1-x && ./run.sh start,x为服务器id
  3. docker exec -it <container_name_or_id> mongosh
  4. ro开启新服打开支付
  5. 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
  6. echo "cd /data2/java/gameserver1-12 && ./run.sh start" | at 9:00 2026-05-01
  7. docker exec -it <容器名或ID> /bin/bash
  8. redis-cli -a tmKjD1ENs3HfZ7adzLJO! KEYS "10001:VirtualBattle_SELF_RECORD:*" | xargs redis-cli -a tmKjD1ENs3HfZ7adzLJO! DEL
  9. server[0]=测试1区,S1,2026-03-16 12:12:12,0,1
  10. server[1]=测试2区,S2,2026-03-16 12:12:12,0,1
  11. 参数4:0,是否推荐区服,0-不推荐 1-推荐(默认),非必填;
  12. 参数5:0,区服是否显示,0-不显示 1-显示(默认),非必填;
  13. case serverproto.UnlockChargeType_UChargeType_DailyGift: //每日礼包弹窗
  14. util.ErrorF("uid=%v dailyGift id=%v", this.role.GetUUid(), cfgData.Id)
  15. if this.role.GetRoleLevel() >= val {
  16. //是否需要根据累计充值来触发
  17. if cfgData.Recharge > 0 {
  18. rechargeTap := this.role.GetTotalRechargeTap()
  19. if rechargeTap <= 0 || rechargeTap != cfgData.Recharge {
  20. continue
  21. }
  22. }
  23. //解锁特定超值礼包
  24. unlockData := &serverproto.ActivitiesUnlockRechargeData{
  25. ActivitiesId: cfgData.Id,
  26. StartTime: nowTime,
  27. EndTime: nowTime + cfgData.DurationTime,
  28. }
  29. this.superUnlockChargeList = append(this.superUnlockChargeList, unlockData)
  30. bAdd = true
  31. if tmpVal == nil {
  32. tmpVal = &serverproto.KeyValueType{Key: cfgData.ProductId, Value: 1}
  33. } else {
  34. tmpVal.Value++
  35. }
  36. this.unlockChargeHasList[tmpVal.Key] = tmpVal
  37. continue
  38. }
  39. this.SuperChargeUnlockCheck(serverproto.UnlockChargeType_UChargeType_DailyGift, &SuperChargeUnlockST{oldValue: 0})
  40. UChargeType_DailyGift = 21; //每日弹窗 [21:保底道具id]