fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
// 鉴权
|
||||
|
||||
Reference in New Issue
Block a user