Skip to content

Commit

Permalink
fix: add missing qua (app version) (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
1umine authored Oct 10, 2023
1 parent ee8edcf commit c025459
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c025459

Please sign in to comment.