fix:游戏分组统计数据
This commit is contained in:
parent
893bc4cbbb
commit
08023bcdea
|
@ -899,6 +899,6 @@ var GuideIdToGainWay = map[int]int{
|
||||||
GuideIdCustom: GainWayGuide2,
|
GuideIdCustom: GainWayGuide2,
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetGameDifKey(gamedif string) string {
|
func GetKeyGameDif(gamedif string) string {
|
||||||
return fmt.Sprintf("gamedif-%v", gamedif)
|
return fmt.Sprintf("gamedif-%v", gamedif)
|
||||||
}
|
}
|
||||||
|
|
|
@ -653,7 +653,7 @@ func (this *Player) ReportGameEvent(param *ReportGameEventParam) *ReportGameEven
|
||||||
gameTimes = dataGame.Statics.GameTimes
|
gameTimes = dataGame.Statics.GameTimes
|
||||||
}
|
}
|
||||||
|
|
||||||
dataGameDif, ok := this.GDatas[common.GetGameDifKey(this.scene.GetDBGameFree().GetGameDif())]
|
dataGameDif, ok := this.GDatas[common.GetKeyGameDif(this.scene.GetDBGameFree().GetGameDif())]
|
||||||
if ok {
|
if ok {
|
||||||
gamedifFirstTime = dataGameDif.FirstTime
|
gamedifFirstTime = dataGameDif.FirstTime
|
||||||
gamedifTimes = dataGameDif.Statics.GameTimes
|
gamedifTimes = dataGameDif.Statics.GameTimes
|
||||||
|
|
|
@ -2111,7 +2111,7 @@ func (this *Scene) Statistics(param *StaticParam) {
|
||||||
var statics []*model.PlayerGameStatics
|
var statics []*model.PlayerGameStatics
|
||||||
keyGameId := strconv.Itoa(this.GetGameId())
|
keyGameId := strconv.Itoa(this.GetGameId())
|
||||||
keyGameFreeId := strconv.Itoa(int(this.GetGameFreeId()))
|
keyGameFreeId := strconv.Itoa(int(this.GetGameFreeId()))
|
||||||
keyGameDif := common.GetGameDifKey(this.GetDBGameFree().GetGameDif())
|
keyGameDif := common.GetKeyGameDif(this.GetDBGameFree().GetGameDif())
|
||||||
// 当天数据统计
|
// 当天数据统计
|
||||||
// 按场次分
|
// 按场次分
|
||||||
if data, ok := p.TodayGameData.CtrlData[keyGameFreeId]; ok {
|
if data, ok := p.TodayGameData.CtrlData[keyGameFreeId]; ok {
|
||||||
|
@ -2350,7 +2350,7 @@ func (this *Scene) StaticsLaba(param *StaticLabaParam) {
|
||||||
var statics []*model.PlayerGameStatics
|
var statics []*model.PlayerGameStatics
|
||||||
keyGameId := strconv.Itoa(this.GetGameId())
|
keyGameId := strconv.Itoa(this.GetGameId())
|
||||||
keyGameFreeId := strconv.Itoa(int(this.GetGameFreeId()))
|
keyGameFreeId := strconv.Itoa(int(this.GetGameFreeId()))
|
||||||
keyGameDif := common.GetGameDifKey(this.GetDBGameFree().GetGameDif())
|
keyGameDif := common.GetKeyGameDif(this.GetDBGameFree().GetGameDif())
|
||||||
// 当天数据统计
|
// 当天数据统计
|
||||||
// 按场次分
|
// 按场次分
|
||||||
if data, ok := p.TodayGameData.CtrlData[keyGameFreeId]; ok {
|
if data, ok := p.TodayGameData.CtrlData[keyGameFreeId]; ok {
|
||||||
|
|
|
@ -1260,6 +1260,7 @@ func (this *Player) UnmarshalData(data []byte, scene *Scene) {
|
||||||
strconv.Itoa(int(scene.dbGameFree.GetGameId())),
|
strconv.Itoa(int(scene.dbGameFree.GetGameId())),
|
||||||
common.GetKeyNoviceGameId(int(scene.dbGameFree.GetGameId())),
|
common.GetKeyNoviceGameId(int(scene.dbGameFree.GetGameId())),
|
||||||
common.GetKeyGameType(int(scene.dbGameFree.GetGameType())),
|
common.GetKeyGameType(int(scene.dbGameFree.GetGameType())),
|
||||||
|
common.GetKeyGameDif(scene.dbGameFree.GetGameDif()),
|
||||||
} {
|
} {
|
||||||
if d, ok := pd.GDatas[v]; ok {
|
if d, ok := pd.GDatas[v]; ok {
|
||||||
this.GDatas[v] = d
|
this.GDatas[v] = d
|
||||||
|
|
Loading…
Reference in New Issue