From c025459da09e8e55de66645b299c7d758bea624b Mon Sep 17 00:00:00 2001 From: Lumine <66518048+1umine@users.noreply.github.com> Date: Tue, 10 Oct 2023 09:26:00 +0800 Subject: [PATCH] fix: add missing qua (app version) (#342) --- client/internal/auth/auth.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/internal/auth/auth.go b/client/internal/auth/auth.go index 67af159f..6d06a21f 100644 --- a/client/internal/auth/auth.go +++ b/client/internal/auth/auth.go @@ -178,18 +178,20 @@ func (v *AppVersion) UpdateFromJson(d []byte) error { if err := json.Unmarshal(d, &f); err != nil { return errors.Wrap(err, "failed to unmarshal json message") } + // 按 AppVersion 字段顺序赋值,以免遗漏 + v.ApkSign, _ = hex.DecodeString(f.ApkSign) v.ApkId = f.ApkId + v.SortVersionName = f.SortVersionName + v.SdkVersion = f.SdkVersion v.AppId = f.AppId v.SubAppId = f.SubAppId v.AppKey = f.AppKey - v.SortVersionName = f.SortVersionName v.BuildTime = f.BuildTime - v.ApkSign, _ = hex.DecodeString(f.ApkSign) - v.SdkVersion = f.SdkVersion v.SSOVersion = f.SSOVersion v.MiscBitmap = f.MiscBitmap v.SubSigmap = f.SubSigmap v.MainSigMap = f.MainSigMap + v.QUA = f.QUA v.Protocol = f.ProtocolType return nil }