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

fix: device config load.

This commit is contained in:
Mrs4s 2021-05-03 15:11:58 +08:00
parent 64c8b0583b
commit 4846cee0ef
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -312,6 +312,8 @@ func (info *DeviceInfo) ToJson() []byte {
return 2
case MacOS:
return 3
case QiDian:
return 4
}
return 0
}(),
@ -374,6 +376,8 @@ func (info *DeviceInfo) ReadJson(d []byte) error {
info.Protocol = AndroidWatch
case 3:
info.Protocol = MacOS
case 4:
info.Protocol = QiDian
default:
info.Protocol = IPad
}