|
@@ -141,9 +141,16 @@ try {
|
|
|
if (!Array.isArray(guest.results)) throw new Error('互动社区投影校验失败');
|
|
if (!Array.isArray(guest.results)) throw new Error('互动社区投影校验失败');
|
|
|
|
|
|
|
|
const migration = await callLegacyFunction('', { action: 'migration_status' });
|
|
const migration = await callLegacyFunction('', { action: 'migration_status' });
|
|
|
- const covered = new Set([...(migration.result?.implemented || []), ...Object.keys(migration.result?.blocked || {})]);
|
|
|
|
|
- const missing = (await sourceActions()).filter((action) => !covered.has(action));
|
|
|
|
|
|
|
+ const sourceActionList = await sourceActions();
|
|
|
|
|
+ const implementedActions = migration.result?.implemented || [];
|
|
|
|
|
+ const blockedActions = Object.keys(migration.result?.blocked || {});
|
|
|
|
|
+ const covered = new Set([...implementedActions, ...blockedActions]);
|
|
|
|
|
+ const missing = sourceActionList.filter((action) => !covered.has(action));
|
|
|
if (missing.length) throw new Error(`app gateway 迁移矩阵缺少:${missing.join(', ')}`);
|
|
if (missing.length) throw new Error(`app gateway 迁移矩阵缺少:${missing.join(', ')}`);
|
|
|
|
|
+ const sourceBlocked = blockedActions.filter((action) => sourceActionList.includes(action));
|
|
|
|
|
+ const compatibilityActions = blockedActions.filter((action) => !sourceActionList.includes(action)).sort();
|
|
|
|
|
+ if (implementedActions.length !== 29 || sourceBlocked.length !== 62) throw new Error(`app gateway 源 action 计数异常:${implementedActions.length} 已映射 / ${sourceBlocked.length} 阻塞`);
|
|
|
|
|
+ if (compatibilityActions.join(',') !== 'content_add_zt,product_add,product_upd') throw new Error(`app gateway 兼容 action 计数异常:${compatibilityActions.join(',')}`);
|
|
|
|
|
|
|
|
const content = await callLegacyFunction('', { action: 'content_list', page: 1, pageSize: 2 });
|
|
const content = await callLegacyFunction('', { action: 'content_list', page: 1, pageSize: 2 });
|
|
|
if (!Array.isArray(content.result) || content.result.length !== 2 || Number(content.page?.itemCount) < 89000) throw new Error('公开内容分页校验失败');
|
|
if (!Array.isArray(content.result) || content.result.length !== 2 || Number(content.page?.itemCount) < 89000) throw new Error('公开内容分页校验失败');
|