| 123456 |
- // Reuse the operations defaults instead of maintaining a second mobile price list.
- export function legacyAppointmentDefaults(operationsCode) {
- const start=operationsCode.indexOf('const TEACHING_STAGE_DEFAULTS='),end=operationsCode.indexOf('async function teachingCategoryRows(',start);
- if(start<0||end<start)throw Error('缺少旧预约核对所需的默认课时规则');
- return '\nfunction legacyAppointmentSeedRules(){function text(value){return String(value==null?\'\':value).trim();}\n'+operationsCode.slice(start,end)+'\nreturn defaultTeachingRules();}\n';
- }
|