fix
This commit is contained in:
@@ -97,8 +97,8 @@ func ConsumeCommonCacheData(ctx context.Context) {
|
||||
func (l *CommonNotifyLogic) CommonNotify(req *types.CommonNotifyReq, userinfo *auth.UserInfo) (resp *basic.Response) {
|
||||
searchConnectType := "uniqueId"
|
||||
if req.Wid == "" {
|
||||
if !userinfo.IsUser() && !userinfo.IsGuest() {
|
||||
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "websocket connect id is empty")
|
||||
if req.UserId == 0 && req.GuestId == 0 {
|
||||
return resp.SetStatusWithMessage(basic.CodeOK, "用户信息或者连接标识必须保证至少有其中一个")
|
||||
}
|
||||
searchConnectType = "userInfo"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user