diff --git a/cmd/gocq/main.go b/cmd/gocq/main.go index 886afbb54..6ee0d9c9d 100644 --- a/cmd/gocq/main.go +++ b/cmd/gocq/main.go @@ -167,7 +167,7 @@ func LoginInteract() { if err != nil { log.Warn(err) } - if len(signServer.URL) > 1 { + if signServer != nil && len(signServer.URL) > 1 { log.Infof("使用签名服务器:%v", signServer.URL) go signStartRefreshToken(base.Account.RefreshInterval) // 定时刷新 token wrapper.DandelionEnergy = energy