统一领取流:Step1 填 UID,按平台分叉履约

领取页改为统一 UID 入口;lewan 强制角色 ID 匹配后才发货核销,feifei 将 uid 拼入 H5 并去掉 claim 短链,对外仍返回本站 claimUrl。
This commit is contained in:
yml2213
2026-07-10 13:30:22 +08:00
parent 1155b3c608
commit bb060e81a4
15 changed files with 898 additions and 285 deletions
+11 -4
View File
@@ -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}`)
}
}