From 0584b4b669c40ffe05fae460ddff4b23b43b8d23 Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 24 Aug 2021 09:11:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Add-on/testEntity/ParseMaterialImage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Add-on/testEntity/ParseMaterialImage.ts b/src/Add-on/testEntity/ParseMaterialImage.ts index 6473a5e34..97eb2aed6 100644 --- a/src/Add-on/testEntity/ParseMaterialImage.ts +++ b/src/Add-on/testEntity/ParseMaterialImage.ts @@ -27,7 +27,7 @@ function GenerateCdnUrl(path: string, isSmallFile = true): string let key = jwt_decode<{ key: string, at: string; }>(userConfig.uese).key; let time = Math.floor(Date.now() / 1000); - let timeStamp = Math.floor(Date.now() / 1000) + 600; + let timeStamp = time + 600; let rand = md5(time + key); let uid = 0; let md5hash = md5(`${path}-${timeStamp}-${rand}-${uid}-${key}`);