增加 times 相关属性

This commit is contained in:
renhaoting 2026-01-22 15:26:14 +08:00
parent 5ebb3153b8
commit 02d6712928
2 changed files with 18 additions and 9 deletions

View File

@ -65,6 +65,10 @@ object AccountManager {
return mAccount.goldCount
}
fun getGoldRVTimes(): Int {
return mAccount.rvTimesGold
}
fun adjustGold(adjustNum: Long, recordBean: RecordGold): Boolean {
if (adjustNum < 0L && Math.abs(adjustNum) > getGold()) {
return false
@ -86,6 +90,10 @@ object AccountManager {
return mAccount.cashCount
}
fun getCashRVTimes(): Int {
return mAccount.rvTimesCash
}
@Synchronized
fun adjustCash(adjustNum: Double, recordBean: RecordCash? = null): Boolean {
if (adjustNum < 0L && Math.abs(adjustNum) > getCash()) {

View File

@ -21,6 +21,16 @@ class VidiDinApp : BaseApp() {
private fun initManagers() {
StatisticUtil.initCallbacks( {
AccountManager.getCash()
}, {
AccountManager.getGold()
}, {
AccountManager.getCashRVTimes()
}, {
AccountManager.getGoldRVTimes()
} )
AccountManager.getAccount()
TaskManager.Companion.instance().initNotificationData()
TaskManager.Companion.instance()
@ -28,14 +38,5 @@ class VidiDinApp : BaseApp() {
FireBaseManager.Companion.instance()
AdjustManager.Companion.instance().initSdk(VidiConst.ADJUST_TOKEN)
StatisticUtil.initCallbacks( {
AccountManager.getCash()
}, {
AccountManager.getGold()
}, {
1
}, {
1
} )
}
}