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:
parent
64c8b0583b
commit
4846cee0ef
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user