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