Compare commits

..

No commits in common. "bcc677ed87a48898734ec8d6653fa10b7c25b473" and "c5886c22b087cefc2e06721c5477dcfd329bb4e2" have entirely different histories.

7 changed files with 9 additions and 9 deletions

Binary file not shown.

View File

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

Binary file not shown.

Binary file not shown.

2
public

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

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.LastChannel {
if value.Channel == p.Channel {
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.LastChannel {
if value.Channel == p.Channel {
config = value
break
}
}
if config == nil {
logger.Logger.Error("钻石抽奖未找到配置p.LastChannel = ", p.LastChannel)
logger.Logger.Error("钻石抽奖未找到配置p.Channel = ", p.Channel)
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.LastChannel {
if value.Channel == p.Channel {
config = value
break
}
}
if config == nil {
logger.Logger.Error("钻石抽奖未找到配置p.LastChannel = ", p.LastChannel)
logger.Logger.Error("钻石抽奖未找到配置p.Channel = ", p.Channel)
return nil
}
if p.DiamondLotteryScore < int64(config.MaxScore) {

Binary file not shown.