Compare commits

..

No commits in common. "12787fedfd31f23c4ad7850c232d8eb3b505e8d5" and "1bc0f64a0f917882dd327304d11d7f45b7183c57" have entirely different histories.

2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -42,4 +42,5 @@ ENV/
*.db
# sqlite
jobs.sqlite
*.sqlite
*.sqlite3

View File

@ -331,7 +331,7 @@ async def complete_order(
# 对商家进行结算
account_manager = AccountManager(db)
settlement_amount = float(order.merchant_product.settlement_amount) * order.qty
settlement_amount = float(order.MerchantProductDB.settlement_amount) * order.MerchantOrderDB.qty
if settlement_amount > 0:
account_manager.change_balance(
user_id=order.merchant.user_id,