测试ws
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
@@ -145,6 +147,9 @@ func (c *EventController) TestWebsocket() {
|
||||
break //结束循环
|
||||
} else {
|
||||
//接受消息 业务逻辑
|
||||
db := dao.GetDB()
|
||||
dao.WrapAddIDCULDEntity(&s, "")
|
||||
dao.CreateEntity(db, &s)
|
||||
fmt.Println("接受到从页面上反馈回来的信息 ", utils.Format4Output(s, false))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user