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 }, {