|
|
@@ -654,6 +654,12 @@ try {
|
|
|
for (const action of ['AddEngLishQuestion','Setting','VersionList','AddVersion','SchoolManage','AddSchool','ClassRoomManage','AddClassRoom','StudentList','CourseManage','AddCourse','ToScore','Papers_Add','Question_Add','Version_GetList','Version_Add','School_Add','ClassRoom_Add','Course_Add','Setting_Update','PublishDesign']) {
|
|
|
const blocked = await callFunctionError('xiaoshu/admin/gateway', login.sessionToken, { operation: 'legacyExamBlocker', action }, 501); if (!String(blocked.message).includes('migration_blocked')) throw new Error(`旧考试动作 ${action} 未返回明确迁移阻塞`);
|
|
|
}
|
|
|
+ for (const action of ['Index','HelpInfo']) {
|
|
|
+ const blocked = await callFunctionError('xiaoshu/admin/gateway', login.sessionToken, { operation: 'legacyHelperBlocker', action }, 501); if (!String(blocked.message).includes('migration_blocked')) throw new Error(`旧帮助动作 ${action} 未返回明确迁移阻塞`);
|
|
|
+ }
|
|
|
+ for (const action of ['UList','VipAdd','VipAddJump','VipUpdate','VipUpdate_Submit','VipRenewal','VipRenewal_Submit','VipOverdue','VipOverdue_Submit','OList']) {
|
|
|
+ const blocked = await callFunctionError('xiaoshu/admin/gateway', login.sessionToken, { operation: 'legacyHmsBlocker', action }, 501); if (!String(blocked.message).includes('migration_blocked')) throw new Error(`旧 Hms 动作 ${action} 未返回明确迁移阻塞`);
|
|
|
+ }
|
|
|
const fareSuffix = Date.now().toString(36); const fareRules = [{ name: '冒烟快递', mode: '1', enabled: true, price: '10', plus: '1', free_sel: '0', free_num: '', free_money: '' }]; const createdFare = await callFunction('xiaoshu/admin/gateway', login.sessionToken, { operation: 'saveShopFareTemplate', className: 'ShopFareTlp', fields: { tlpName: `冒烟运费-${fareSuffix}`, priceMode: 1, express: JSON.stringify(fareRules), remind: '临时运费模板', remind2: '' } }); temporaryShopFareTemplateId = String(createdFare.objectId || ''); if (!temporaryShopFareTemplateId || !Number(createdFare.id) || createdFare.sourceKey !== `[["ID",${Number(createdFare.id)}]]`) throw new Error(`商城运费模板原子编号创建异常:${JSON.stringify(createdFare)}`);
|
|
|
const fareList = await callFunction('xiaoshu/admin/gateway', login.sessionToken, { operation: 'shopFareTemplates', className: 'ShopFareTlp', page: 1, pageSize: 20, search: fareSuffix }); if (fareList.total !== 1 || fareList.results?.[0]?.objectId !== temporaryShopFareTemplateId) throw new Error('商城运费模板专用列表失败');
|
|
|
const updatedFare = await callFunction('xiaoshu/admin/gateway', login.sessionToken, { operation: 'saveShopFareTemplate', className: 'ShopFareTlp', objectId: temporaryShopFareTemplateId, fields: { tlpName: `更新运费-${fareSuffix}`, priceMode: 1, express: JSON.stringify(fareRules), remind: '已更新', remind2: '' } }); if (updatedFare.tlpName !== `更新运费-${fareSuffix}` || Number(updatedFare.id) !== Number(createdFare.id)) throw new Error('商城运费模板专用编辑失败');
|