From a52ed56a66636c19b15bde0db6e057f5ea71b4fe Mon Sep 17 00:00:00 2001 From: lwl0608 Date: Mon, 11 Nov 2024 22:04:32 +0800 Subject: [PATCH] g --- vas/check_refund.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vas/check_refund.py b/vas/check_refund.py index ae3008d..040a4f0 100644 --- a/vas/check_refund.py +++ b/vas/check_refund.py @@ -600,5 +600,19 @@ class S: status_cnt_map[status] += 1 print(status_cnt_map) + refund_amount = 0 + for d in docs: + status = safe_get_int(d, "order_status") + if status != 3: + continue + + order_id = safe_get_int(d, "id") + pay_amount = safe_get_int(d, "pay_amount") + print(order_id, pay_amount) + refund_amount += pay_amount + + print(refund_amount) + + s = S() s.find_order_ids()