Browse Source

更新镜像服务id

dev_trial
巴林闲侠 2 years ago
parent
commit
6102243dd3
  1. 2
      code/VideoAccess-VCMP/api/app/lib/controllers/mirror/index.js

2
code/VideoAccess-VCMP/api/app/lib/controllers/mirror/index.js

@ -168,7 +168,7 @@ async function refreshId (ctx) {
if (!mirrorId) throw '更新镜像服务ID失败'; 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({ await models.Mirror.update({
mid: nextId mid: nextId
}, { }, {

Loading…
Cancel
Save