mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 14:22:26 +08:00
更新文档
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
_ "net/http/pprof"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
@@ -36,7 +37,7 @@ func Run(ctx context.Context, configFile string) error {
|
||||
MqAddr: config.CONF.Hk4e.GateTcpMqAddr,
|
||||
MqPort: uint32(config.CONF.Hk4e.GateTcpMqPort),
|
||||
},
|
||||
Version: config.CONF.Hk4e.Version,
|
||||
Version: strings.Split(config.CONF.Hk4e.Version, ","),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
## 使用方法
|
||||
|
||||
> 1. 在此目录下建立proto目录
|
||||
> 2. 将对应版本的proto协议文件复制到proto目录下并编译成pb.go
|
||||
> 3. make gen_client_proto
|
||||
> 4. 将client_cmd.csv放入gate和gs和fight服务器的运行目录下
|
||||
> 2. 将对应版本的proto协议文件和client_cmd.csv协议号文件复制到proto目录下
|
||||
> 3. 到项目根目录下执行`make gen_client_proto`(本操作可能会修改proto文件,请注意备份)
|
||||
> 4. 执行`protoc --go_out=. *.proto`,将proto目录下的proto协议文件编译成pb.go
|
||||
> 5. 将gate和gs和fight服务器的配置文件中开启client_proto_proxy_enable客户端协议代理功能
|
||||
|
||||
Reference in New Issue
Block a user