bug修复 - 0元购没有钻石但还是可以参团+1
This commit is contained in:
parent
45c808618e
commit
05721bcd46
|
|
@ -144,7 +144,7 @@ object AccountManager {
|
|||
|
||||
fun adjustDiamond(diamondCost: Int): Boolean {
|
||||
mAccount?.let {
|
||||
if (it.diamondCount > diamondCost) {
|
||||
if (it.diamondCount >= diamondCost) {
|
||||
it.diamondCount -= diamondCost
|
||||
saveAccountInfo()
|
||||
NotifyMan.instance().sendEvent(VididinEvents.Event_Account_Diamond_Changed, null)
|
||||
|
|
|
|||
Loading…
Reference in New Issue