mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
fix reverse ws connect issue.
This commit is contained in:
parent
dd03efc9c8
commit
8524fbf1ce
@ -64,14 +64,15 @@ func (c *websocketClient) Run() {
|
||||
if !c.conf.Enabled {
|
||||
return
|
||||
}
|
||||
if c.conf.ReverseApiUrl != "" {
|
||||
c.connectApi()
|
||||
}
|
||||
if c.conf.ReverseEventUrl != "" {
|
||||
c.connectEvent()
|
||||
}
|
||||
if c.conf.ReverseUrl != "" {
|
||||
c.connectUniversal()
|
||||
} else {
|
||||
if c.conf.ReverseApiUrl != "" {
|
||||
c.connectApi()
|
||||
}
|
||||
if c.conf.ReverseEventUrl != "" {
|
||||
c.connectEvent()
|
||||
}
|
||||
}
|
||||
c.bot.OnEventPush(c.onBotPushEvent)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user