mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 15:52:27 +08:00
完善机器人
This commit is contained in:
@@ -10,12 +10,13 @@ var CONF *Config = nil
|
||||
|
||||
// Config 配置
|
||||
type Config struct {
|
||||
HttpPort int32 `toml:"http_port"`
|
||||
Logger Logger `toml:"logger"`
|
||||
Database Database `toml:"database"`
|
||||
Redis Redis `toml:"redis"`
|
||||
Hk4e Hk4e `toml:"hk4e"`
|
||||
MQ MQ `toml:"mq"`
|
||||
HttpPort int32 `toml:"http_port"`
|
||||
Logger Logger `toml:"logger"`
|
||||
Database Database `toml:"database"`
|
||||
Redis Redis `toml:"redis"`
|
||||
Hk4e Hk4e `toml:"hk4e"`
|
||||
Hk4eRobot Hk4eRobot `toml:"hk4e_robot"`
|
||||
MQ MQ `toml:"mq"`
|
||||
}
|
||||
|
||||
// Logger 日志
|
||||
@@ -36,7 +37,7 @@ type Redis struct {
|
||||
Password string `toml:"password"`
|
||||
}
|
||||
|
||||
// Hk4e 原神相关
|
||||
// Hk4e 原神服务器
|
||||
type Hk4e struct {
|
||||
KcpAddr string `toml:"kcp_addr"` // 该地址只用来注册到节点服务器 填网关的外网地址 网关本地监听为0.0.0.0
|
||||
KcpPort int32 `toml:"kcp_port"`
|
||||
@@ -51,6 +52,22 @@ type Hk4e struct {
|
||||
DispatchUrl string `toml:"dispatch_url"` // 二级dispatch地址 将域名改为dispatch的外网地址
|
||||
}
|
||||
|
||||
// Hk4eRobot 原神机器人
|
||||
type Hk4eRobot struct {
|
||||
RegionListUrl string `toml:"region_list_url"` // 一级dispatch地址
|
||||
RegionListParam string `toml:"region_list_param"` // 一级dispatch的url参数
|
||||
CurRegionUrl string `toml:"cur_region_url"` // 二级dispatch地址
|
||||
CurRegionParam string `toml:"cur_region_param"` // 二级dispatch的url参数
|
||||
KeyId string `toml:"key_id"` // 客户端密钥编号
|
||||
LoginSdkUrl string `toml:"login_sdk_url"` // sdk登录服务器地址
|
||||
Account string `toml:"account"` // 帐号
|
||||
Password string `toml:"password"` // base64编码的rsa公钥加密后的密码
|
||||
ClientVersion string `toml:"client_version"` // 客户端版本号
|
||||
DosEnable bool `toml:"dos_enable"` // 是否开启压力测试
|
||||
DosNum int32 `toml:"dos_num"` // 压力测试并发数量 帐号自动添加后缀编号
|
||||
DosLoopLogin bool `toml:"dos_loop_login"` // 压力测试是否循环登录退出
|
||||
}
|
||||
|
||||
// MQ 消息队列
|
||||
type MQ struct {
|
||||
NatsUrl string `toml:"nats_url"`
|
||||
|
||||
Reference in New Issue
Block a user