From 6102243dd35782f23b9c1496a412ec271b83954b Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Tue, 6 Dec 2022 10:21:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=95=9C=E5=83=8F=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/VideoAccess-VCMP/api/app/lib/controllers/mirror/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/VideoAccess-VCMP/api/app/lib/controllers/mirror/index.js b/code/VideoAccess-VCMP/api/app/lib/controllers/mirror/index.js index e10c3e6..7ec79ed 100644 --- a/code/VideoAccess-VCMP/api/app/lib/controllers/mirror/index.js +++ b/code/VideoAccess-VCMP/api/app/lib/controllers/mirror/index.js @@ -168,7 +168,7 @@ async function refreshId (ctx) { if (!mirrorId) throw '更新镜像服务ID失败'; - const nextId = timeNow.format(`ssmmHHDDMMYY${Math.floor(Math.random() * 89 + 10)}`) + const nextId = moment().format(`ssmmHHDDMMYY${Math.floor(Math.random() * 89 + 10)}`) await models.Mirror.update({ mid: nextId }, {