网络游戏初步接入
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user