1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

Merge pull request #324 from icarus-ai/patch-1

fix: uptimes, 距离当前时间戳最多14400秒
This commit is contained in:
Mrs4s 2023-03-16 07:14:57 +08:00 committed by GitHub
commit 4b7a854307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ func genRandomPayloadByDevice(info *Device) map[string]any {
"oz": "UhYmelwouA+V2nPWbOvLTgN2/m8jwGB+yUB5v9tysQg=", "oz": "UhYmelwouA+V2nPWbOvLTgN2/m8jwGB+yUB5v9tysQg=",
"oo": "Xecjt+9S1+f8Pz2VLSxgpw==", "oo": "Xecjt+9S1+f8Pz2VLSxgpw==",
"kelong": "0", "kelong": "0",
"uptimes": time.Unix(now.Unix()-fixedRand.Int63n(86400), 0).Format(time.DateTime), "uptimes": time.Unix(now.Unix()-fixedRand.Int63n(14400), 0).Format(time.DateTime),
"multiUser": "0", "multiUser": "0",
"bod": string(info.Board), "bod": string(info.Board),
"brd": string(info.Brand), "brd": string(info.Brand),