diff --git a/im/qq/main.go b/im/qq/main.go index 4369a51..0a9abfb 100644 --- a/im/qq/main.go +++ b/im/qq/main.go @@ -106,7 +106,7 @@ func start() { mkCacheDir(global.VideoPath, "视频") mkCacheDir(global.CachePath, "发送图片") - if device := qq.Get("device.json"); device == "" { + if device := qq.Get("device.json"); device == "" || device == "{}" { client.GenRandomDevice() qq.Set("device.json", string(client.SystemDeviceInfo.ToJson())) } else {