From be4dbe923ecbcc9254cf72b82d377725f798b3f1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 23 八月 2021 23:52:54 +0800
Subject: [PATCH] 8796 【主干】【gt_1.101.1】【后端】Part1 2、每日在线送符印寻宝20次(领取记录通知固定只发当天的);
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnlinePrize.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnlinePrize.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnlinePrize.py
index d0475bb..bc5658c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnlinePrize.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerOnlinePrize.py
@@ -140,13 +140,14 @@
onlineAwardCount = IpyGameDataPY.IPY_Data().GetOnlineAwardCount()
if not onlineAwardCount:
return
+ creatRoleDay = GameWorld.GetCreateRoleDays(curPlayer)
sendPack = ChPyNetSendPack.tagMCOnlinePrize()
sendPack.Clear()
sendPack.OnlineTime = GetOnlineTime(curPlayer) * 1000
- sendPack.PrizeInfo = []
- for i in xrange(onlineAwardCount):
- dayID = i#i+1,增加了每日支持,从0开始,代表每日
- sendPack.PrizeInfo.append(curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_OnlinePrizeNote % dayID))
+ sendPack.PrizeInfo = [curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_OnlinePrizeNote % creatRoleDay)] # 创角7日的与前端约定固定只发当天的
+# for i in xrange(onlineAwardCount):
+# dayID = i + 1#i+1,增加了每日支持,从0开始,代表每日
+# sendPack.PrizeInfo.append(curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_OnlinePrizeNote % dayID))
sendPack.Len = len(sendPack.PrizeInfo)
#通知客户端时间
NetPackCommon.SendFakePack(curPlayer, sendPack)
--
Gitblit v1.8.0