wehhook添加active字段

This commit is contained in:
623756217 2023-03-07 17:02:30 +08:00
parent 653257c4fd
commit f3fec65b5b
1 changed files with 1 additions and 0 deletions

View File

@ -681,6 +681,7 @@ public class UserService extends AbstractUserBot implements IUserService {
}
Bot bot = botMapper.selectById(limitEvents.get(0).getBotId());
webhook.setEvents(objects);
webhook.setActive(true);
webhook.setContent_type("json");
webhook.setUrl(bot.getWebUrl());
webhook.setHttp_method("POST");