fix(thunder):no additional processing when the deviceID is correct
This commit is contained in:
parent
0e99e7e9b9
commit
fc393f743f
@ -143,7 +143,12 @@ func (x *ThunderExpert) Init(ctx context.Context, storage model.Storage) (err er
|
|||||||
Common: &Common{
|
Common: &Common{
|
||||||
client: base.NewRestyClient(),
|
client: base.NewRestyClient(),
|
||||||
|
|
||||||
DeviceID: utils.GetMD5Encode(x.DeviceID),
|
DeviceID: func() string {
|
||||||
|
if len(x.DeviceID) != 32 {
|
||||||
|
return utils.GetMD5Encode(x.DeviceID)
|
||||||
|
}
|
||||||
|
return x.DeviceID
|
||||||
|
}(),
|
||||||
ClientID: x.ClientID,
|
ClientID: x.ClientID,
|
||||||
ClientSecret: x.ClientSecret,
|
ClientSecret: x.ClientSecret,
|
||||||
ClientVersion: x.ClientVersion,
|
ClientVersion: x.ClientVersion,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user