增加 times 相关属性
This commit is contained in:
parent
5ebb3153b8
commit
02d6712928
|
|
@ -65,6 +65,10 @@ object AccountManager {
|
||||||
return mAccount.goldCount
|
return mAccount.goldCount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun getGoldRVTimes(): Int {
|
||||||
|
return mAccount.rvTimesGold
|
||||||
|
}
|
||||||
|
|
||||||
fun adjustGold(adjustNum: Long, recordBean: RecordGold): Boolean {
|
fun adjustGold(adjustNum: Long, recordBean: RecordGold): Boolean {
|
||||||
if (adjustNum < 0L && Math.abs(adjustNum) > getGold()) {
|
if (adjustNum < 0L && Math.abs(adjustNum) > getGold()) {
|
||||||
return false
|
return false
|
||||||
|
|
@ -86,6 +90,10 @@ object AccountManager {
|
||||||
return mAccount.cashCount
|
return mAccount.cashCount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun getCashRVTimes(): Int {
|
||||||
|
return mAccount.rvTimesCash
|
||||||
|
}
|
||||||
|
|
||||||
@Synchronized
|
@Synchronized
|
||||||
fun adjustCash(adjustNum: Double, recordBean: RecordCash? = null): Boolean {
|
fun adjustCash(adjustNum: Double, recordBean: RecordCash? = null): Boolean {
|
||||||
if (adjustNum < 0L && Math.abs(adjustNum) > getCash()) {
|
if (adjustNum < 0L && Math.abs(adjustNum) > getCash()) {
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,16 @@ class VidiDinApp : BaseApp() {
|
||||||
|
|
||||||
|
|
||||||
private fun initManagers() {
|
private fun initManagers() {
|
||||||
|
StatisticUtil.initCallbacks( {
|
||||||
|
AccountManager.getCash()
|
||||||
|
}, {
|
||||||
|
AccountManager.getGold()
|
||||||
|
}, {
|
||||||
|
AccountManager.getCashRVTimes()
|
||||||
|
}, {
|
||||||
|
AccountManager.getGoldRVTimes()
|
||||||
|
} )
|
||||||
|
|
||||||
AccountManager.getAccount()
|
AccountManager.getAccount()
|
||||||
TaskManager.Companion.instance().initNotificationData()
|
TaskManager.Companion.instance().initNotificationData()
|
||||||
TaskManager.Companion.instance()
|
TaskManager.Companion.instance()
|
||||||
|
|
@ -28,14 +38,5 @@ class VidiDinApp : BaseApp() {
|
||||||
FireBaseManager.Companion.instance()
|
FireBaseManager.Companion.instance()
|
||||||
AdjustManager.Companion.instance().initSdk(VidiConst.ADJUST_TOKEN)
|
AdjustManager.Companion.instance().initSdk(VidiConst.ADJUST_TOKEN)
|
||||||
|
|
||||||
StatisticUtil.initCallbacks( {
|
|
||||||
AccountManager.getCash()
|
|
||||||
}, {
|
|
||||||
AccountManager.getGold()
|
|
||||||
}, {
|
|
||||||
1
|
|
||||||
}, {
|
|
||||||
1
|
|
||||||
} )
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue