opt: 取消强制手机号验证,更新配置

This commit is contained in:
RockYang
2023-07-24 18:18:09 +08:00
parent 2efc669ab2
commit 84f9a83f55
9 changed files with 54 additions and 25 deletions

View File

@@ -47,6 +47,10 @@ func (h *ChatHandler) ChatHandle(c *gin.Context) {
logger.Error(err)
return
}
// 设置读写超时时间
_ = ws.SetWriteDeadline(time.Now().Add(300 * time.Second))
_ = ws.SetReadDeadline(time.Now().Add(300 * time.Second))
sessionId := c.Query("session_id")
roleId := h.GetInt(c, "role_id", 0)
chatId := c.Query("chat_id")