This commit is contained in:
richboo111
2023-04-26 14:16:56 +08:00
parent d370610b41
commit ddfec752c0
3 changed files with 5 additions and 4 deletions

View File

@@ -11,8 +11,6 @@ import (
"sync" "sync"
"time" "time"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/baseapi/platformapi/mtwmapi" "git.rosy.net.cn/baseapi/platformapi/mtwmapi"
"git.rosy.net.cn/jx-callback/globals/api" "git.rosy.net.cn/jx-callback/globals/api"
"github.com/gazeboxu/mapstructure" "github.com/gazeboxu/mapstructure"
@@ -234,7 +232,7 @@ func Setup() {
LocalHost: getIntranetIp(), LocalHost: getIntranetIp(),
ServerList: make(map[string]string), ServerList: make(map[string]string),
} }
fmt.Printf("LocalHost=%s\n ServerList=%s\n", GlobalSetting.LocalHost, utils.Format4Output(GlobalSetting.ServerList, false)) fmt.Printf("LocalHost=%s\n ", GlobalSetting.LocalHost)
} }
// mapTo map section // mapTo map section

View File

@@ -30,7 +30,7 @@ func Init() {
go Manager.Start() go Manager.Start()
fmt.Printf("服务器启动成功,端口号:%s\n", CommonSetting.HttpPort) //fmt.Printf("服务器启动成功,端口号:%s\n", CommonSetting.HttpPort)
} }
func Run(w http.ResponseWriter, r *http.Request) { func Run(w http.ResponseWriter, r *http.Request) {

View File

@@ -146,6 +146,9 @@ func (c *EventController) TestWebsocket() {
log.Fatal(err) log.Fatal(err)
} }
defer ws.Close() defer ws.Close()
//var clientID = c.GetString("clientID")
//fmt.Printf("clientID=%s", clientID)
var ( var (
vendorOrderID = c.GetString("vendorOrderID") vendorOrderID = c.GetString("vendorOrderID")
msgMap = make(map[string]*model.ImMessageRecord) msgMap = make(map[string]*model.ImMessageRecord)