测试接口

This commit is contained in:
苏尹岚
2020-08-27 13:38:54 +08:00
parent 65e950226f
commit d355376589

View File

@@ -152,8 +152,10 @@ func (c *EventController) TestWebsocket() {
//接受消息 业务逻辑
broadcast <- s
db := dao.GetDB()
dao.WrapAddIDCULDEntity(&s, "")
dao.CreateEntity(db, &s)
for _, v := range s {
dao.WrapAddIDCULDEntity(&v, "")
dao.CreateEntity(db, v)
}
// fmt.Println("接受到从页面上反馈回来的信息 ", utils.Format4Output(s, false))
}
}