Merge pull request #103 from xpack-ai/feature/1.3-liujian
Change the balance_after field to balance
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user