网络游戏初步接入

This commit is contained in:
2024-10-18 15:11:40 +08:00
parent 263a57f636
commit b27d2b80f7
12 changed files with 306 additions and 67 deletions
+3
View File
@@ -18,6 +18,9 @@ type Online struct {
}
func (o *Online) Url(router string) string {
if o.Port == "" {
o.Port = cfg.T.ServerAddr
}
return fmt.Sprintf("http://%s%s%s", o.Ip, o.Port, router)
}