增加提取castile到游戏的逻辑。

This commit is contained in:
yuming88
2025-04-28 19:26:17 +08:00
parent e50137a90e
commit d40cdda6ae
11 changed files with 205 additions and 73 deletions

View File

@@ -98,6 +98,7 @@ func (s *ServiceContext) GameAction(ctx context.Context, roleId int64, action st
s.ErrLog(ctx, action, addr, serverInfo, request, resp)
return resp, fmt.Errorf("game action msg= %s, data=%v", cast.ToString(resp["msg"]), cast.ToString(resp["data"]))
}
s.ErrLog(ctx, action, addr, serverInfo, request, resp)
return resp, nil
}

View File

@@ -44,6 +44,9 @@ type dbModel struct {
StakePointConfigModel model.NhStakeHomePointConfigModel
StakePointsModel model.NhStakePointsModel
StakePointsLogModel model.NhStakePointsLogModel
CastileTokenModel model.NhCastileTokenModel
CastileTokenLogModel model.NhCastileTokenLogModel
}
func newDBModel(dbConn, gameConn sqlx.SqlConn, configModel model.NhSystemConfigModel) *dbModel {
@@ -82,5 +85,8 @@ func newDBModel(dbConn, gameConn sqlx.SqlConn, configModel model.NhSystemConfigM
MergeServerModel: model.NewMsMergeServersModel(gameConn),
GameServerModel: model.NewMsGameServerModel(gameConn),
ServersModel: model.NewMgServersModel(gameConn),
CastileTokenModel: model.NewNhCastileTokenModel(dbConn),
CastileTokenLogModel: model.NewNhCastileTokenLogModel(dbConn),
}
}