This commit is contained in:
laodaming
2023-10-12 11:19:01 +08:00
parent cefe601046
commit 8a349399e1
3 changed files with 626 additions and 31 deletions

View File

@@ -185,11 +185,6 @@ func (l *DataTransferLogic) setConnPool(conn *websocket.Conn, userInfo *auth.Use
}
if oldWid != "" {
for i := 0; i < 1; i++ {
oldWid, err = encryption_decryption.NumberStrToBase64Str(oldWid)
if err != nil {
logx.Error("wid转base64失败:", err)
break
}
//解析传入的wid是不是属于自己的用户的
decryptionWid, err := encryption_decryption.CBCDecrypt(oldWid)
if err != nil {
@@ -278,7 +273,7 @@ func (l *DataTransferLogic) getUniqueId(userInfo *auth.UserInfo, userAgent strin
if err != nil {
return "", err
}
return encryption_decryption.Base64StrToNumberStr(uniqueId), nil
return uniqueId, nil
}
// 鉴权