优化代码

This commit is contained in:
flswld
2023-03-03 17:02:25 +08:00
parent ea7a071d2a
commit 42b66453fb
19 changed files with 44 additions and 98 deletions
-2
View File
@@ -22,7 +22,6 @@ type UserInfo struct {
// 获取卡池信息
func (g *GameManager) GetGachaInfoReq(player *model.Player, payloadMsg pb.Message) {
logger.Debug("user get gacha info, uid: %v", player.PlayerID)
serverAddr := config.GetConfig().Hk4e.GachaHistoryServer
userInfo := &UserInfo{
UserId: player.PlayerID,
@@ -195,7 +194,6 @@ func (g *GameManager) GetGachaInfoReq(player *model.Player, payloadMsg pb.Messag
}
func (g *GameManager) DoGachaReq(player *model.Player, payloadMsg pb.Message) {
logger.Debug("user do gacha, uid: %v", player.PlayerID)
req := payloadMsg.(*proto.DoGachaReq)
gachaScheduleId := req.GachaScheduleId
gachaTimes := req.GachaTimes