Skip to content

Commit

Permalink
feat: 价格支付
Browse files Browse the repository at this point in the history
  • Loading branch information
mikumifa committed Sep 15, 2024
1 parent 2fdef9a commit c001024
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tab/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ def on_submit_ticket_id(num):
for screen in data["screen_list"]:
screen_name = screen["name"]
screen_id = screen["id"]
express_fee = screen["express_fee"]
express_fee = 0
if data["has_eticket"]:
express_fee = 0 # 电子票免费
else:
if screen["express_fee"] >= 0:
express_fee = screen["express_fee"] # -2 === t ? "快递到付" : -1 === t ? "快递包邮" : "快递配送"

for ticket in screen["ticket_list"]:
ticket_desc = ticket["desc"]
sale_start = ticket["sale_start"]
Expand Down

0 comments on commit c001024

Please sign in to comment.