diff --git a/client/internal/auth/qimei.go b/client/internal/auth/qimei.go index 7685cb17..db5113e5 100644 --- a/client/internal/auth/qimei.go +++ b/client/internal/auth/qimei.go @@ -115,14 +115,7 @@ func genRandomPayloadByDevice(info *Device) map[string]any { seed += int64(b) } fixedRand := rand.New(rand.NewSource(seed)) - years := now.Year() - month := now.Month() - if month == 1 { - years-- - month = 12 - } else { - month-- - } + reserved := map[string]string{ "harmony": "0", "clone": "0", @@ -130,7 +123,7 @@ func genRandomPayloadByDevice(info *Device) map[string]any { "oz": "UhYmelwouA+V2nPWbOvLTgN2/m8jwGB+yUB5v9tysQg=", "oo": "Xecjt+9S1+f8Pz2VLSxgpw==", "kelong": "0", - "uptimes": time.Date(years, month, fixedRand.Intn(27)+1, fixedRand.Intn(60), fixedRand.Intn(60), fixedRand.Intn(60), fixedRand.Intn(1e9), now.Location()).Format("2006-01-02 15:04:05"), + "uptimes": time.Unix(now.Unix()-fixedRand.Int63n(86400), 0).Format(time.DateTime), "multiUser": "0", "bod": string(info.Board), "brd": string(info.Brand),