package frame_type // 计算rtp需要的配置 type RtpCalcInfo struct { GameName string `json:"gameName"` // 游戏名称 Bet float64 `json:"bet"` // 押注 Time int `json:"time"` // 次数 Money float64 `json:"money"` // 初始金额 } // rtp计算结果 => 会由多次spin的数据组合而成 type RtpCalcResult struct { Info *RtpCalcInfo `json:"info"` // 计算的配置 RestMoney float64 `json:"restMoney"` // 剩余金额 TotalWin float64 `json:"totalWin"` // 总赢的钱 会分为下面三个部分 NormalWin float64 `json:"normalWin"` // 普通赢的钱 FreeWin float64 `json:"freeWin"` // 免费赢的钱 ScatterWin float64 `json:"scatterWin"` // scatter符号赢的钱 WinTimes int `json:"winTimes"` // 赢的次数 TotalRtp float64 `json:"totalRtp"` // 总的rtp NormalRtp float64 `json:"normalRtp"` // 普通rtp FreeRtp float64 `json:"freeRtp"` // 免费rtp ScatterRtp float64 `json:"scatterRtp"` // scatter rtp SuccessRate float64 `json:"successRate"` // 成功率 FreeWinTime int `json:"freeWinTime"` // 免费触发次数 MaxRate float64 `json:"maxRate"` // 最大赢率 MinRate float64 `json:"minRate"` // 最小赢率 AvgRate float64 `json:"avgRate"` // 平均赢率 CostTime float64 `json:"costTime"` // 耗时 } // 单次spin结果 type OneSpinResult struct { IsTriggerFree bool `json:"isTriggerFree"` // 是否触发免费 TotalWin float64 `json:"totalWin"` // 总赢的钱 会分为下面三个部分 NormalWin float64 `json:"normalWin"` // 普通赢的钱 FreeWin float64 `json:"freeWin"` // 免费赢的钱 ScatterWin float64 `json:"scatterWin"` // scatter符号赢的钱 Info []*SpinRoundInfo `json:"info"` // 每轮的结果 } // 盘面结果 type SpinRoundInfo struct { Axles []*AxleResultItem `json:"axles"` RestAxle []*AxleResultItem `json:"restAxle"` Win float64 `json:"win"` Type SpinWinType `json:"type"` } // 赢钱类型 type SpinWinType int const ( NormalWin SpinWinType = iota FreeWin ScatterWin )