Skip to content

Commit 7baf313

Browse files
committed
对点赞超时作为异常处理
1 parent 1c9086a commit 7baf313

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/me/teble/xposed/autodaily/hook/function/impl/FavoriteManager.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ open class FavoriteManager : BaseFunction(
107107
return fromServiceMsg.isSuccess
108108
}
109109
LogUtil.i("执行点赞 $targetUin count: $count 超时")
110-
return false
110+
throw RuntimeException("执行点赞 $targetUin count: $count 超时")
111111
}
112112

113113
open fun syncGetVoterList(page: Int, pageSize: Int): List<VoterInfo>? {
@@ -137,8 +137,8 @@ open class FavoriteManager : BaseFunction(
137137
}
138138
}
139139
}
140-
LogUtil.i("获取点赞列表超时")
141-
return null
140+
LogUtil.w("获取点赞列表超时")
141+
throw RuntimeException("获取点赞列表超时")
142142
}
143143

144144
open fun getAllYesterdayVoter(maxPage: Int): List<VoterInfo> {

0 commit comments

Comments
 (0)