mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fix: fix error.
This commit is contained in:
parent
0e07ad70c3
commit
ce140beddc
@ -139,3 +139,11 @@ func (m *msgServer) conversationAndGetRecvID(conversation *conversation.Conversa
|
|||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *msgServer) AppendStreamMsg(ctx context.Context, req *msg.AppendStreamMsgReq) (*msg.AppendStreamMsgResp, error) {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *msgServer) GetStreamMsg(ctx context.Context, req *msg.GetStreamMsgReq) (*msg.GetStreamMsgResp, error) {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
@ -2,6 +2,7 @@ package controller
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/golang-jwt/jwt/v4"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
"github.com/openimsdk/open-im-server/v3/pkg/authverify"
|
"github.com/openimsdk/open-im-server/v3/pkg/authverify"
|
||||||
"github.com/openimsdk/open-im-server/v3/pkg/common/config"
|
"github.com/openimsdk/open-im-server/v3/pkg/common/config"
|
||||||
@ -41,19 +42,7 @@ func NewAuthDatabase(cache cache.TokenModel, accessSecret string, accessExpire i
|
|||||||
return &authDatabase{cache: cache, accessSecret: accessSecret, accessExpire: accessExpire, multiLogin: multiLoginConfig{
|
return &authDatabase{cache: cache, accessSecret: accessSecret, accessExpire: accessExpire, multiLogin: multiLoginConfig{
|
||||||
Policy: multiLogin.Policy,
|
Policy: multiLogin.Policy,
|
||||||
MaxNumOneEnd: multiLogin.MaxNumOneEnd,
|
MaxNumOneEnd: multiLogin.MaxNumOneEnd,
|
||||||
CustomizeLoginNum: map[int]int{
|
},
|
||||||
constant.IOSPlatformID: multiLogin.CustomizeLoginNum.IOS,
|
|
||||||
constant.AndroidPlatformID: multiLogin.CustomizeLoginNum.Android,
|
|
||||||
constant.WindowsPlatformID: multiLogin.CustomizeLoginNum.Windows,
|
|
||||||
constant.OSXPlatformID: multiLogin.CustomizeLoginNum.OSX,
|
|
||||||
constant.WebPlatformID: multiLogin.CustomizeLoginNum.Web,
|
|
||||||
constant.MiniWebPlatformID: multiLogin.CustomizeLoginNum.MiniWeb,
|
|
||||||
constant.LinuxPlatformID: multiLogin.CustomizeLoginNum.Linux,
|
|
||||||
constant.AndroidPadPlatformID: multiLogin.CustomizeLoginNum.APad,
|
|
||||||
constant.IPadPlatformID: multiLogin.CustomizeLoginNum.IPad,
|
|
||||||
constant.AdminPlatformID: multiLogin.CustomizeLoginNum.Admin,
|
|
||||||
},
|
|
||||||
}, adminUserIDs: adminUserIDs,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user