Merge branch 'develop' into release

This commit is contained in:
sk 2024-07-18 14:19:21 +08:00
commit bcc677ed87
7 changed files with 9 additions and 9 deletions

Binary file not shown.

View File

@ -2955,12 +2955,12 @@
"Id": 300000,
"Name": "财神送福",
"ShowLocation": [
1,
0,
1
],
"Classify": [
0,
0,
1,
1,
0
],
"Type": 21,

Binary file not shown.

Binary file not shown.

2
public

@ -1 +1 @@
Subproject commit 4206616316ed483d02fc9fc13299c51a278ae53e
Subproject commit 3d5fc5c6e4eeb3b8008ff098751c1bd6b211793c

View File

@ -237,7 +237,7 @@ func (this *CSDiamondLotteryInfoHandler) Process(s *netlib.Session, packetid int
info := WelfareMgrSington.GetConfig(p.Platform)
if info != nil && info.DiamondLotteryConfig != nil {
for _, value := range info.DiamondLotteryConfig.LotteryData {
if value.Channel == p.Channel {
if value.Channel == p.LastChannel {
pack.MaxScore = value.MaxScore
pack.DiamondNum = value.DiamondNum
for _, lotteryInfo := range value.Info {
@ -294,13 +294,13 @@ func (this *CSDiamondLotteryHandler) Process(s *netlib.Session, packetid int, da
var config *webapi.DiamondLotteryData
if info != nil && info.LotteryData != nil {
for _, value := range info.LotteryData {
if value.Channel == p.Channel {
if value.Channel == p.LastChannel {
config = value
break
}
}
if config == nil {
logger.Logger.Error("钻石抽奖未找到配置p.Channel = ", p.Channel)
logger.Logger.Error("钻石抽奖未找到配置p.LastChannel = ", p.LastChannel)
return nil
}
//判断钻石数量
@ -443,13 +443,13 @@ func (this *CSDiamondLotteryLuckyAwardHandler) Process(s *netlib.Session, packet
var config *webapi.DiamondLotteryData
if info != nil && info.LotteryData != nil {
for _, value := range info.LotteryData {
if value.Channel == p.Channel {
if value.Channel == p.LastChannel {
config = value
break
}
}
if config == nil {
logger.Logger.Error("钻石抽奖未找到配置p.Channel = ", p.Channel)
logger.Logger.Error("钻石抽奖未找到配置p.LastChannel = ", p.LastChannel)
return nil
}
if p.DiamondLotteryScore < int64(config.MaxScore) {

Binary file not shown.