From 4a9483bf122bae39ae9b2ccfee9cd9f3acdb7d90 Mon Sep 17 00:00:00 2001 From: RTAkland Date: Wed, 25 Sep 2024 15:07:57 +0800 Subject: [PATCH] fix: fix transfer --- src/main/kotlin/cn/rtast/fancybot/util/file/NiuziBankManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/cn/rtast/fancybot/util/file/NiuziBankManager.kt b/src/main/kotlin/cn/rtast/fancybot/util/file/NiuziBankManager.kt index fb43d2f..2d8787a 100644 --- a/src/main/kotlin/cn/rtast/fancybot/util/file/NiuziBankManager.kt +++ b/src/main/kotlin/cn/rtast/fancybot/util/file/NiuziBankManager.kt @@ -76,7 +76,7 @@ class NiuziBankManager { suspend fun transfer(from: Long, target: Long, amount: Double): NiuziBankAccount? { suspendedTransaction { - this.decreaseBalance(from, -amount) + this.decreaseBalance(from, amount) this.increaseBalance(target, amount) } return this.getUser(from)