测试接口

This commit is contained in:
苏尹岚
2020-08-27 17:46:16 +08:00
parent 30b9d937a0
commit b057521ed0

View File

@@ -1,6 +1,7 @@
package controllers
import (
"fmt"
"log"
"net/http"
"time"
@@ -131,7 +132,7 @@ func (c *EventController) TestWebsocket() {
defer ws.Close()
//将当前客户端放入map中
clients[ws] = true
fmt.Println("t11111111111111111111111111111111111111111111111111111111111111111", utils.Format4Output(c.Ctx.Request, false))
//聊天记录
db := dao.GetDB()
_, _, err = jxcontext.New(nil, c.GetString("token"), c.Ctx.ResponseWriter, c.Ctx.Request)