更新文档

This commit is contained in:
flswld
2023-01-31 00:10:18 +08:00
parent 5a175722d7
commit bd8a68b8d6
12 changed files with 56 additions and 42 deletions

View File

@@ -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

View File

@@ -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客户端协议代理功能