1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-05 03:23:50 +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 return 2
case MacOS: case MacOS:
return 3 return 3
case QiDian:
return 4
} }
return 0 return 0
}(), }(),
@ -374,6 +376,8 @@ func (info *DeviceInfo) ReadJson(d []byte) error {
info.Protocol = AndroidWatch info.Protocol = AndroidWatch
case 3: case 3:
info.Protocol = MacOS info.Protocol = MacOS
case 4:
info.Protocol = QiDian
default: default:
info.Protocol = IPad info.Protocol = IPad
} }