@gt6/sdk 1.0.42 → 1.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -695,7 +695,17 @@ class ArticlesAPI {
695
695
  return false;
696
696
  }
697
697
  }
698
- // 3. mileage 范围过滤
698
+ // 3. Salary 范围过滤
699
+ if (searchOptions?.salaryRange) {
700
+ const salary = parseFloat(articleObj.Salary || '0');
701
+ if (searchOptions.salaryRange.min !== undefined && salary < searchOptions.salaryRange.min) {
702
+ return false;
703
+ }
704
+ if (searchOptions.salaryRange.max !== undefined && salary > searchOptions.salaryRange.max) {
705
+ return false;
706
+ }
707
+ }
708
+ // 4. mileage 范围过滤
699
709
  if (searchOptions?.mileageRange) {
700
710
  // 处理里程数格式,如 "26000 km" -> 26000
701
711
  const mileageStr = articleObj.Mileage || '0';
@@ -708,7 +718,7 @@ class ArticlesAPI {
708
718
  return false;
709
719
  }
710
720
  }
711
- // 4. propertyArea 范围过滤
721
+ // 5. propertyArea 范围过滤
712
722
  if (searchOptions?.propertyAreaRange) {
713
723
  const propertyArea = parseFloat(articleObj.propertyArea || '0');
714
724
  if (searchOptions.propertyAreaRange.min !== undefined && propertyArea < searchOptions.propertyAreaRange.min) {
@@ -718,7 +728,7 @@ class ArticlesAPI {
718
728
  return false;
719
729
  }
720
730
  }
721
- // 5. plotArea 范围过滤
731
+ // 6. plotArea 范围过滤
722
732
  if (searchOptions?.plotAreaRange) {
723
733
  const plotArea = parseFloat(articleObj.plotArea || '0');
724
734
  if (searchOptions.plotAreaRange.min !== undefined && plotArea < searchOptions.plotAreaRange.min) {
@@ -728,7 +738,7 @@ class ArticlesAPI {
728
738
  return false;
729
739
  }
730
740
  }
731
- // 6. tagIds 过滤
741
+ // 7. tagIds 过滤
732
742
  if (searchOptions?.tagIds && searchOptions.tagIds.length > 0) {
733
743
  if (!articleObj.tagIds || articleObj.tagIds.length === 0) {
734
744
  return false;