update websocket

This commit is contained in:
landaiqing
2024-10-17 23:41:40 +08:00
parent b5d88a7ccd
commit 31eabd4e55
6 changed files with 213 additions and 64 deletions

View File

@@ -19,7 +19,7 @@ import (
"schisandra-cloud-album/common/randomname"
"schisandra-cloud-album/common/redis"
"schisandra-cloud-album/common/result"
"schisandra-cloud-album/controller/websocket_controller"
"schisandra-cloud-album/controller/websocket_controller/qr_ws_controller"
"schisandra-cloud-album/global"
"schisandra-cloud-album/model"
"schisandra-cloud-album/utils"
@@ -286,7 +286,7 @@ func handelUserLogin(userId string, clientId string, c *gin.Context) bool {
return
}
// gws方式发送消息
err = websocket_controller.Handler.SendMessageToClient(clientId, tokenData)
err = qr_ws_controller.Handler.SendMessageToClient(clientId, tokenData)
if err != nil {
global.LOG.Error(err)
resultChan <- false