Sfoglia il codice sorgente

紧急修复大项清单判断漏洞

Tony Kang 1 anno fa
parent
commit
9d1a636c94
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      web/building_saas/standard_interface/import/base.js

+ 1 - 1
web/building_saas/standard_interface/import/base.js

@@ -261,7 +261,7 @@ const INTERFACE_EXPORT_BASE = (() => {
       const titleType = bills.titleType || "0";
       let matched;
       if (!parent) {
-        if (titleTypeToFlag[titleType] === fixedFlag.ONE_SEVEN_BILLS || /100章.*章|100章.*700章|100章.*900章/.test(simpleName)) {
+        if ((titleTypeToFlag[titleType] === fixedFlag.ONE_SEVEN_BILLS || /100章.*章|100章.*700章|100章.*900章/.test(simpleName)) && simpleName.indexOf('第100章') === 0) {
           matched = target.find((bills) => getFlag(bills) === fixedFlag.ONE_SEVEN_BILLS);
         } else if (titleTypeToFlag[titleType] === fixedFlag.PROVISIONAL_TOTAL || /包含在清单合计中的材料、工程设备、专业工程暂估/.test(simpleName)) {
           matched = target.find((bills) => getFlag(bills) === fixedFlag.PROVISIONAL_TOTAL);