修复编译不过

This commit is contained in:
huangxiaolei
2022-11-23 20:23:38 +08:00
parent 1e4c9e6422
commit 01bcaa0309
3 changed files with 1049 additions and 7 deletions

View File

@@ -286,10 +286,10 @@ func (g *GameManager) DoGachaReq(player *model.Player, payloadMsg pb.Message) {
xh := uint32(random.GetRandomInt32(0, 10))
gachaItem := new(proto.GachaItem)
gachaItem.GachaItem_ = &proto.ItemParam{
gachaItem.TokenItemList = []*proto.ItemParam{{
ItemId: itemId,
Count: 1,
}
}}
// 星尘
if xc != 0 {
g.AddUserItem(player.PlayerID, []*UserItem{{