mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-10 04:00:08 +08:00
docs: add more info about device info
https://mirai.mamoe.net/topic/149/mirai%E5%9C%A8%E6%97%A0%E6%A1%8C%E9%9D%A2%E7%8E%AF%E5%A2%83%E4%B8%8B%E8%BF%90%E8%A1%8C
This commit is contained in:
parent
0c93aeb425
commit
d3bfd4df04
@ -106,6 +106,8 @@ setCacheDir(File("C:/cache")) // 最终为 C:/cache
|
|||||||
#### 设备信息
|
#### 设备信息
|
||||||
Bot 默认使用全随机的设备信息。**在更换账号地点时候使用随机设备信息可能会导致无法登录**,当然,**成功登录时使用的设备信息也可以保存后在新的设备使用**。
|
Bot 默认使用全随机的设备信息。**在更换账号地点时候使用随机设备信息可能会导致无法登录**,当然,**成功登录时使用的设备信息也可以保存后在新的设备使用**。
|
||||||
|
|
||||||
|
若要在服务器部署,可以先在本地完成登录,再将设备信息上传到服务器。一个设备信息可以一直使用。
|
||||||
|
|
||||||
要使用 `device.json` 存储设备信息:
|
要使用 `device.json` 存储设备信息:
|
||||||
```
|
```
|
||||||
fileBasedDeviceInfo() // 存储为 "device.json"
|
fileBasedDeviceInfo() // 存储为 "device.json"
|
||||||
|
Loading…
Reference in New Issue
Block a user