update excel
This commit is contained in:
parent
f2163d29ac
commit
4e08e75510
|
@ -1,4 +1,4 @@
|
|||
|
||||
(Ђв8–@Ўи;PdX–`c
|
||||
< ((€β2ΕΈ2συ8¬@Άθ;JΖΈJσυPdX¬`Η
|
||||
?<18>ΑΧ/ 2(€β2ΕΈ2συ8ξ@£θ;JΖΈJσυPdXξ`σ
|
||||
< ((€β2ΕΈ2συ8¬@Άθ;JσυJΖΈPdX¬`Η
|
||||
?<18>ΑΧ/ 2(€β2συ2ΕΈ8ξ@£θ;JΖΈJσυPdXξ`σ
|
Binary file not shown.
BIN
data/DB_Task.dat
BIN
data/DB_Task.dat
Binary file not shown.
|
@ -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})
|
||||
}
|
|
@ -1118,7 +1118,7 @@ func (this *WelfareMgr) BlindBoxInfo(p *Player, bid int32) {
|
|||
if cyc == 1 || blindBox.Cycle == model.WelfareOpen {
|
||||
p.WelfData.BlindBoxId = 0
|
||||
}
|
||||
} // == 1代表当日循环
|
||||
} // == 1代表当日循环
|
||||
if p.WelfData.BlindBoxId == 0 { // 未领取过发随机Date
|
||||
|
||||
idx := bid
|
||||
|
|
Loading…
Reference in New Issue