bug修复 - 0元购没有钻石但还是可以参团+1

This commit is contained in:
renhaoting 2025-12-23 17:09:57 +08:00
parent 45c808618e
commit 05721bcd46
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ object AccountManager {
fun adjustDiamond(diamondCost: Int): Boolean { fun adjustDiamond(diamondCost: Int): Boolean {
mAccount?.let { mAccount?.let {
if (it.diamondCount > diamondCost) { if (it.diamondCount >= diamondCost) {
it.diamondCount -= diamondCost it.diamondCount -= diamondCost
saveAccountInfo() saveAccountInfo()
NotifyMan.instance().sendEvent(VididinEvents.Event_Account_Diamond_Changed, null) NotifyMan.instance().sendEvent(VididinEvents.Event_Account_Diamond_Changed, null)