1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 11:07:39 +08:00

fix: nil pointer

This commit is contained in:
源文雨 2023-08-29 22:50:02 +08:00
parent 77b54fca20
commit 417a0f256a

View File

@ -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