Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望能添加一个踢人下线的功能 #32

Open
Tim1104 opened this issue Jan 12, 2021 · 2 comments
Open

希望能添加一个踢人下线的功能 #32

Tim1104 opened this issue Jan 12, 2021 · 2 comments

Comments

@Tim1104
Copy link

Tim1104 commented Jan 12, 2021

就是api 端可以踢下线。还有踢出频道

@2881099
Copy link
Owner

2881099 commented Jan 12, 2021

踢出频道,用 ImHelper.LeaveChan

其实也可以自己在 webapi 中维护一个群表

create table group
(
    id int,
    name varchar(100)
)

create table group_user
(
   group_id int,
   user_id int
)

如此只需要维护好 group_user 的表数据即可,发送数据的时候,查询 group_user 表记录,然后调用 ImHelper.SendMessage 发送群消息。

@2881099
Copy link
Owner

2881099 commented Jan 12, 2021

踢人下线,让前端自己断开 websocket 连接就行了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants