印度包网
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.

181 lines
3.5 KiB

1 year ago
package config
1 year ago
type OssParams struct {
Endpoint string
AccessKeyId string
AccessKeySecret string
BucketName string
ObjectName string
1 year ago
Domain string
1 year ago
}
1 year ago
type FacebookParams struct {
Prefix string
AppKey string
AppScrect string
AuthURL string
}
type GooglePlayParams struct {
Prefix string
AuthURL string
}
type Configure struct {
2 months ago
Release bool
1 year ago
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
}
2 months ago
RichPay struct {
MID string
PrivateKey string
Secret string
}
VirgoPay struct {
MID int
URL string
Key string
}
SuperPay struct {
Account string
Password string
PayCode []string
WithdrawCode []string
}
GalloPay struct {
PayUrl string
}
1 year ago
}
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
ImageURL string
1 year ago
}
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
1 year ago
Oss OssParams
1 year ago
}
Rummy struct {
SettleTime int
}
Teenpatti struct {
OperateTime int
SettleTime int
}
Customer struct {
2 months ago
Addr string
DB string
Release bool
ImageURL string
MaxOrderCount int64
1 year ago
}
MaxPlayerCount int64
WorkID int
Version int
}
func GetConfig() *Configure {
return &cfg
}
var cfg Configure
func LoadConfig(cfgFile string) error {
return LoadToml(cfgFile, &cfg)
}