webhook中url参数拼接botname

This commit is contained in:
wanjia 2023-04-04 10:32:02 +08:00
parent f81b1cc078
commit 1060e348a2
1 changed files with 1 additions and 1 deletions

View File

@ -767,7 +767,7 @@ public class UserService extends AbstractUserBot implements IUserService {
webhook.setEvents(objects);
webhook.setActive(true);
webhook.setContent_type("json");
webhook.setUrl(bot.getWebhook());
webhook.setUrl(bot.getWebhook() + "?botname=" + bot.getBotName());
webhook.setHttp_method("POST");
webhook.setBranch_filter("*");
return webhook;