统一领取流:Step1 填 UID,按平台分叉履约
领取页改为统一 UID 入口;lewan 强制角色 ID 匹配后才发货核销,feifei 将 uid 拼入 H5 并去掉 claim 短链,对外仍返回本站 claimUrl。
This commit is contained in:
@@ -83,11 +83,18 @@ function assertMigrationFilesOrdered() {
|
||||
|
||||
const versions = files.map((name) => Number(name.slice(0, 3)))
|
||||
for (let index = 1; index < versions.length; index += 1) {
|
||||
if (versions[index] < versions[index - 1]) {
|
||||
throw new Error(`迁移序号乱序: ${files[index - 1]} 之后出现 ${files[index]}`)
|
||||
const current = versions[index]
|
||||
const previous = versions[index - 1]
|
||||
const currentFile = files[index]
|
||||
const previousFile = files[index - 1]
|
||||
if (current === undefined || previous === undefined || !currentFile || !previousFile) {
|
||||
continue
|
||||
}
|
||||
if (versions[index] === versions[index - 1]) {
|
||||
throw new Error(`迁移序号重复: ${files[index - 1]} 与 ${files[index]}`)
|
||||
if (current < previous) {
|
||||
throw new Error(`迁移序号乱序: ${previousFile} 之后出现 ${currentFile}`)
|
||||
}
|
||||
if (current === previous) {
|
||||
throw new Error(`迁移序号重复: ${previousFile} 与 ${currentFile}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user