印度包网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
1.6 KiB

3 months ago
package jin2
const (
APIRlease = "https://gamecenter.fortureslots.com/api/v1/game/launch"
APITest = "https://gamecenter.pg2testing.com/api/v1/game/launch"
// LaunchGameURL = "/api/usr/ingame"
// GetGameListURL = "/api/game/loadlist"
// Lang = "hi"
)
type Agent struct {
MchId string `json:"mch_id"`
Key string `json:"key"`
}
var (
API = ""
AgentMap Agent
AgentMapTest = Agent{
MchId: "slotgolden777test",
Key: "010804d1-7bbf-4ed5-9b50-60fbd2b22e34",
}
AgentMapRelease = Agent{
MchId: "slotgolden777",
Key: "ddeaeb76-5624-41fe-a6ea-7ad9307d7701",
}
)
// var (
// RtpMap = map[int]int{
// 97: 11,
// 96: 12,
// 95: 13,
// 93: 14,
// 90: 15,
// 85: 16,
// 80: 17,
// 60: 18,
// 40: 19,
// }
// rtps = []int{97, 96, 95, 93, 90, 85, 80, 60, 40}
// LevelMap = map[int]int{
// 11: 97,
// 12: 96,
// 13: 95,
// 14: 93,
// 15: 90,
// 16: 85,
// 17: 80,
// 18: 60,
// 19: 40,
// }
// )
// func GetLevel(uid int) int {
// rtp := call.GetProviderGameRtp(uid)
// if rtp >= rtps[0] {
// return RtpMap[97]
// } else if rtp <= rtps[len(rtps)-1] {
// return RtpMap[40]
// }
// for i := 1; i < len(rtps); i++ {
// if rtp <= rtps[i-1] && rtp >= rtps[i] {
// return RtpMap[rtps[i]]
// }
// }
// return 15
// }
// func GetRtp(uid int) int {
// rtp := call.GetProviderGameRtp(uid)
// if rtp >= rtps[0] {
// return LevelMap[RtpMap[97]]
// } else if rtp <= rtps[len(rtps)-1] {
// return LevelMap[RtpMap[40]]
// }
// for i := 1; i < len(rtps); i++ {
// if rtp <= rtps[i-1] && rtp >= rtps[i] {
// return LevelMap[RtpMap[rtps[i]]]
// }
// }
// return 90
// }