Merge pull request #103 from xpack-ai/feature/1.3-liujian

Change the balance_after field to balance
This commit is contained in:
Dot.L authored and GitHub committed 2025-12-30 18:41:51 +08:00
commit d9fe780665
1 file changed
+2 -2
@@ -51,13 +51,13 @@ class UserWalletHistoryService:
info["description"] = service.name
except:
info["description"] = "-"
info["balance_after"] = order.balance_after
info["balance"] = order.balance_after
elif order.type == TransactionType.DEPOSIT:
info["order_type"] = "recharge"
if order.status == 1:
info["balance_after"] = order.balance_after
else:
info["balance_after"] = "-"
info["balance"] = "-"
info["description"] = order.payment_method
else:
info["order_type"] = order.type