From 69c1150d877e91c309e1ca27f705f51411bf677c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 15 Dec 2025 13:42:48 +0800 Subject: [PATCH] bugfix --- accounting/recharge.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/accounting/recharge.py b/accounting/recharge.py index 2629976..dbd3f4d 100644 --- a/accounting/recharge.py +++ b/accounting/recharge.py @@ -48,13 +48,9 @@ class RechargeAccounting: if bz_date != self.curdate: raise AccountingDateNotInBusinessDate(self.curdate, bz_date) - ao = Accounting(self, nodes[i], self.customerid, - resellerid=nodes[i+1]) - else: - ao = AccountingOrgs(self, nodes[i], self.customerid) - self.accountingOrgs.append(ao) + ao = Accounting(self, "0", self.customerid) await self.write_bill(sor) - [await ao.do_accounting(sor) for ao in self.accountingOrgs ] + await ao.do_accounting(sor) print(f'recharge ok for {self.bill}, {nodes=}') return True