Skip to content

Commit

Permalink
chore: 更改参数名称
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 25, 2023
1 parent c9269a9 commit a9f7572
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/src/main/kotlin/li/songe/gkd/service/AbState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,22 @@ var lastTriggerRule: ResolvedRule? = null
var lastTriggerTime = 0L
var appChangeTime = 0L

fun insertClickLog(appRule: ResolvedRule) {
appRule.trigger()
fun insertClickLog(rule: ResolvedRule) {
rule.trigger()
toastClickTip()
appScope.launchTry(Dispatchers.IO) {
val clickLog = ClickLog(
appId = topActivityFlow.value.appId,
activityId = topActivityFlow.value.activityId,
subsId = appRule.subsItem.id,
subsVersion = appRule.rawSubs.version,
groupKey = appRule.group.key,
groupType = when (appRule) {
subsId = rule.subsItem.id,
subsVersion = rule.rawSubs.version,
groupKey = rule.group.key,
groupType = when (rule) {
is AppRule -> SubsConfig.AppGroupType
is GlobalRule -> SubsConfig.GlobalGroupType
},
ruleIndex = appRule.index,
ruleKey = appRule.key,
ruleIndex = rule.index,
ruleKey = rule.key,
)
DbSet.clickLogDao.insert(clickLog)
increaseClickCount()
Expand Down

0 comments on commit a9f7572

Please sign in to comment.