From 4846cee0efaeb15b7458366bbeeedd0f2b62eb79 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Mon, 3 May 2021 15:11:58 +0800 Subject: [PATCH] fix: device config load. --- client/global.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/global.go b/client/global.go index d150e508..b2eef890 100644 --- a/client/global.go +++ b/client/global.go @@ -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 }