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