Him188 2021-04-17 15:29:25 +08:00 committed by GitHub
parent 0c93aeb425
commit d3bfd4df04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,8 @@ setCacheDir(File("C:/cache")) // 最终为 C:/cache
#### 设备信息
Bot 默认使用全随机的设备信息。**在更换账号地点时候使用随机设备信息可能会导致无法登录**,当然,**成功登录时使用的设备信息也可以保存后在新的设备使用**。
若要在服务器部署,可以先在本地完成登录,再将设备信息上传到服务器。一个设备信息可以一直使用。
要使用 `device.json` 存储设备信息:
```
fileBasedDeviceInfo() // 存储为 "device.json"