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.
|
|
|
|
package config
|
|
|
|
|
|
|
|
|
|
type OssParams struct {
|
|
|
|
|
Endpoint string
|
|
|
|
|
AccessKeyId string
|
|
|
|
|
AccessKeySecret string
|
|
|
|
|
BucketName string
|
|
|
|
|
ObjectName string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FacebookParams struct {
|
|
|
|
|
Prefix string
|
|
|
|
|
AppKey string
|
|
|
|
|
AppScrect string
|
|
|
|
|
AuthURL string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GooglePlayParams struct {
|
|
|
|
|
Prefix string
|
|
|
|
|
AuthURL string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Configure struct {
|
|
|
|
|
BlockPay struct {
|
|
|
|
|
Tron struct {
|
|
|
|
|
// Addrs []string // 官方地址
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Pay struct {
|
|
|
|
|
CertFile string
|
|
|
|
|
KeyFile string
|
|
|
|
|
CallbackURL string
|
|
|
|
|
Addr string
|
|
|
|
|
CheckLimit int // 触发充值权重检测的阀值
|
|
|
|
|
RootChannel []int
|
|
|
|
|
PaySuccessWeight int // 成功改变的权重值
|
|
|
|
|
PayFailWeight int // 失败改变的权重值
|
|
|
|
|
BaseSuccess int // 基准成功率
|
|
|
|
|
// Release bool
|
|
|
|
|
TLS bool
|
|
|
|
|
SelectPayWay bool
|
|
|
|
|
PayCheckTime int
|
|
|
|
|
WithdrawScanTime int
|
|
|
|
|
IGeek struct {
|
|
|
|
|
APIURL string
|
|
|
|
|
APPID string
|
|
|
|
|
MID string
|
|
|
|
|
Key string
|
|
|
|
|
}
|
|
|
|
|
BestPay struct {
|
|
|
|
|
APIURL string
|
|
|
|
|
}
|
|
|
|
|
GrePay struct {
|
|
|
|
|
Key string
|
|
|
|
|
WithdrawAccount string
|
|
|
|
|
MIDAmount int64
|
|
|
|
|
BigChannel string
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Web struct {
|
|
|
|
|
OTP struct {
|
|
|
|
|
AntgstSmsReqURL string
|
|
|
|
|
AntgstAccessKey string
|
|
|
|
|
AntgstAccessSecret string
|
|
|
|
|
AntgstModel string
|
|
|
|
|
AliSmsReqURL string
|
|
|
|
|
AliSmsAccount string
|
|
|
|
|
AliSmsPass string
|
|
|
|
|
AliSmsModel string
|
|
|
|
|
BukaUrl string
|
|
|
|
|
BukaAppID string
|
|
|
|
|
BukaAPIKey string
|
|
|
|
|
BukaAPISecret string
|
|
|
|
|
BukaModel string
|
|
|
|
|
}
|
|
|
|
|
Mail struct {
|
|
|
|
|
BukaAPIKey string
|
|
|
|
|
BukaAPISecret string
|
|
|
|
|
BukaEmailUrl string
|
|
|
|
|
BukaEmailAppID string
|
|
|
|
|
BukaEmailAddr string
|
|
|
|
|
BukaTemplateID string
|
|
|
|
|
}
|
|
|
|
|
Adjust struct {
|
|
|
|
|
URL string
|
|
|
|
|
APIURL string
|
|
|
|
|
APIToken string
|
|
|
|
|
}
|
|
|
|
|
FB struct {
|
|
|
|
|
APIURL string
|
|
|
|
|
}
|
|
|
|
|
CertFile string
|
|
|
|
|
KeyFile string
|
|
|
|
|
Addr string
|
|
|
|
|
// Release bool
|
|
|
|
|
TLS bool
|
|
|
|
|
MaxPlayerAccountIP int
|
|
|
|
|
MaxBankCardCount int
|
|
|
|
|
PassRegion []string
|
|
|
|
|
BlackRegion []string
|
|
|
|
|
IFSCURL string
|
|
|
|
|
TestWithdraw int
|
|
|
|
|
TestPay int
|
|
|
|
|
FetchTime int
|
|
|
|
|
OldChannels []int
|
|
|
|
|
FreeSpinFirst int64
|
|
|
|
|
TotalWithdrawPer int64 // 整体总赠送比例限制
|
|
|
|
|
BreakLimit int64 // 低于该值弹出破产礼包
|
|
|
|
|
SelectID int
|
|
|
|
|
}
|
|
|
|
|
Hall struct {
|
|
|
|
|
FacebookParams FacebookParams
|
|
|
|
|
GooglePlayParams GooglePlayParams
|
|
|
|
|
AvatarURL string
|
|
|
|
|
SavePath string
|
|
|
|
|
}
|
|
|
|
|
Gate struct {
|
|
|
|
|
WSAddr string
|
|
|
|
|
WSPort string
|
|
|
|
|
CertFile string
|
|
|
|
|
KeyFile string
|
|
|
|
|
HeartBeat int
|
|
|
|
|
BufSize int
|
|
|
|
|
TLS bool
|
|
|
|
|
}
|
|
|
|
|
Backend struct {
|
|
|
|
|
Addr string
|
|
|
|
|
DB string
|
|
|
|
|
Oss OssParams
|
|
|
|
|
}
|
|
|
|
|
Rummy struct {
|
|
|
|
|
SettleTime int
|
|
|
|
|
}
|
|
|
|
|
Teenpatti struct {
|
|
|
|
|
OperateTime int
|
|
|
|
|
SettleTime int
|
|
|
|
|
}
|
|
|
|
|
Customer struct {
|
|
|
|
|
Addr string
|
|
|
|
|
DB string
|
|
|
|
|
}
|
|
|
|
|
MaxPlayerCount int64
|
|
|
|
|
WorkID int
|
|
|
|
|
Version int
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetConfig() *Configure {
|
|
|
|
|
return &cfg
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var cfg Configure
|
|
|
|
|
|
|
|
|
|
func LoadConfig(cfgFile string) error {
|
|
|
|
|
return LoadToml(cfgFile, &cfg)
|
|
|
|
|
}
|