update excel

This commit is contained in:
sk 2024-12-27 10:35:07 +08:00
parent f2163d29ac
commit 4e08e75510
5 changed files with 3 additions and 80 deletions

View File

@ -1,4 +1,4 @@
 (Ђ­в8@Ўи;PdX`c  (Ђ­в8@Ўи;PdX`c
< ((€­β2ΕΈ2συ@Άθ;JΖΈJσυPdX¬`Η < ((€­β2ΕΈ2συ@Άθ;JσυJΖΈPdX¬`Η
?<18>ΑΧ/ 2(€­β2ΕΈ2συ@£θ;JΖΈJσυPdXξ`σ ?<18>ΑΧ/ 2(€­β2συ2ΕΈ@£θ;JΖΈJσυPdXξ`σ

Binary file not shown.

Binary file not shown.

View File

@ -1,77 +0,0 @@
// Code generated by xlsx2proto.
// DO NOT EDIT!
package srvdata
import (
"google.golang.org/protobuf/proto"
"mongo.games.com/game/protocol/server"
)
var PBDB_Game_bankruptcyMgr = &DB_Game_bankruptcyMgr{
Datas: &server.DB_Game_bankruptcyArray{},
pool: make(map[int32]*server.DB_Game_bankruptcy),
}
type DB_Game_bankruptcyMgr struct {
Datas *server.DB_Game_bankruptcyArray
pool map[int32]*server.DB_Game_bankruptcy
}
func (this *DB_Game_bankruptcyMgr) unmarshal(data []byte) error {
err := proto.Unmarshal(data, this.Datas)
if err == nil {
this.arrangeData()
}
return err
}
func (this *DB_Game_bankruptcyMgr) reunmarshal(data []byte) error {
newDatas := &server.DB_Game_bankruptcyArray{}
err := proto.Unmarshal(data, newDatas)
if err == nil {
for _, item := range newDatas.Arr {
existItem := this.GetData(item.GetId())
if existItem == nil {
this.pool[item.GetId()] = item
this.Datas.Arr = append(this.Datas.Arr, item)
} else {
*existItem = *item
}
}
}
return err
}
func (this *DB_Game_bankruptcyMgr) arrangeData() {
if this.Datas == nil {
return
}
dataArr := this.Datas.GetArr()
if dataArr == nil {
return
}
for _, data := range dataArr {
this.pool[data.GetId()] = data
}
}
func (this *DB_Game_bankruptcyMgr) GetData(id int32) *server.DB_Game_bankruptcy {
if data, ok := this.pool[id]; ok {
return data
}
return nil
}
func init() {
DataMgr.register("DB_Game_bankruptcy.dat", &ProtobufDataLoader{dh: PBDB_Game_bankruptcyMgr})
}

View File

@ -1118,7 +1118,7 @@ func (this *WelfareMgr) BlindBoxInfo(p *Player, bid int32) {
if cyc == 1 || blindBox.Cycle == model.WelfareOpen { if cyc == 1 || blindBox.Cycle == model.WelfareOpen {
p.WelfData.BlindBoxId = 0 p.WelfData.BlindBoxId = 0
} }
} // == 1代表当日循环 } // == 1代表当日循环
if p.WelfData.BlindBoxId == 0 { // 未领取过发随机Date if p.WelfData.BlindBoxId == 0 { // 未领取过发随机Date
idx := bid idx := bid