sophhub 0.4.67 → 0.4.68

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sophhub",
3
- "version": "0.4.67",
3
+ "version": "0.4.68",
4
4
  "description": "SophHub CLI - Manage and download AI Agent skills and agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -94,8 +94,8 @@ python3 {baseDir}/scripts/flight_booking.py create-order --flight-no CA1723 --ca
94
94
  | `originalSalePrice` | 查询时的票价(search 缓存) |
95
95
  | `updatedSalePrice` | 实时票价(验价后) |
96
96
  | `salePriceDiff` | 票价差额(正数为涨价,负数为降价) |
97
- | `originalTotal` | 原订单总额(含税费服务费) |
98
- | `updatedTotal` | 新订单总额(含税费服务费) |
97
+ | `originalTotal` | 原订单总额(含税费) |
98
+ | `updatedTotal` | 新订单总额(含税费) |
99
99
  | `totalDiff` | 总额差额 |
100
100
  | `message` | API 返回的价格变动说明原文 |
101
101
 
@@ -818,9 +818,7 @@ def cmd_create_order(args: argparse.Namespace) -> int:
818
818
  shopping_code = cabin.get("shoppingCode", "")
819
819
  price_info = None
820
820
 
821
- # 服务费来源:航班顶层 serviceFee 或舱位层级 serviceFee(两者值相同,优先取 flight)
822
- service_fee = float(flight.get("serviceFee", 0) or cabin.get("serviceFee", 0) or 0)
823
- estimated_total = sale_price + dep_tax + fuel_tax + service_fee
821
+ estimated_total = sale_price + dep_tax + fuel_tax
824
822
 
825
823
  # 价格变动检测:当 check_price 返回 code=10301 或 isUpdatePrice=true 时,记录新旧价格对比
826
824
  price_changed = (
@@ -832,8 +830,7 @@ def cmd_create_order(args: argparse.Namespace) -> int:
832
830
  orig_sale = float(cabin.get("salePrice", 0))
833
831
  orig_total = orig_sale \
834
832
  + float(flight.get("departureTax", 0)) \
835
- + float(flight.get("fuelTax", 0)) \
836
- + float(flight.get("serviceFee", 0) or cabin.get("serviceFee", 0) or 0)
833
+ + float(flight.get("fuelTax", 0))
837
834
  price_diff = {
838
835
  "originalSalePrice": orig_sale,
839
836
  "updatedSalePrice": sale_price,
@@ -843,7 +840,6 @@ def cmd_create_order(args: argparse.Namespace) -> int:
843
840
  "totalDiff": round(estimated_total - orig_total, 2),
844
841
  "departureTax": dep_tax,
845
842
  "fuelTax": fuel_tax,
846
- "serviceFee": service_fee,
847
843
  "message": verify_res.get("msg", ""),
848
844
  }
849
845
 
@@ -1129,8 +1125,7 @@ def cmd_change_order(args: argparse.Namespace) -> int:
1129
1125
  shopping_code = cabin.get("shoppingCode", "")
1130
1126
  price_info = None
1131
1127
 
1132
- service_fee = float(flight.get("serviceFee", 0) or cabin.get("serviceFee", 0) or 0)
1133
- estimated_total = sale_price + dep_tax + fuel_tax + service_fee
1128
+ estimated_total = sale_price + dep_tax + fuel_tax
1134
1129
 
1135
1130
  price_changed = (
1136
1131
  verify_res.get("code") == "10301"
@@ -1141,8 +1136,7 @@ def cmd_change_order(args: argparse.Namespace) -> int:
1141
1136
  orig_sale = float(cabin.get("salePrice", 0))
1142
1137
  orig_total = orig_sale \
1143
1138
  + float(flight.get("departureTax", 0)) \
1144
- + float(flight.get("fuelTax", 0)) \
1145
- + float(flight.get("serviceFee", 0) or cabin.get("serviceFee", 0) or 0)
1139
+ + float(flight.get("fuelTax", 0))
1146
1140
  price_diff = {
1147
1141
  "originalSalePrice": orig_sale,
1148
1142
  "updatedSalePrice": sale_price,
@@ -1152,7 +1146,6 @@ def cmd_change_order(args: argparse.Namespace) -> int:
1152
1146
  "totalDiff": round(estimated_total - orig_total, 2),
1153
1147
  "departureTax": dep_tax,
1154
1148
  "fuelTax": fuel_tax,
1155
- "serviceFee": service_fee,
1156
1149
  "message": verify_res.get("msg", ""),
1157
1150
  }
1158
1151