webhook中url参数拼接botname
This commit is contained in:
parent
f81b1cc078
commit
1060e348a2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue