Merge branch 'fix/GHZS-5218' into 'release'
fix: 游戏提示解析包错误问题 https://jira.shanqu.cc/browse/GHZS-5218 See merge request halo/android/assistant-android!1625
This commit is contained in:
@ -264,13 +264,17 @@ object NDownloadBridge : InnerDownloadListener, IErrorRetryHandler {
|
||||
val file = File(downloadEntity.path)
|
||||
val oaidString = "o|${HaloApp.getInstance().oaid}"
|
||||
try {
|
||||
if (ChannelReader.containV2Signature(file)) {
|
||||
if (ChannelReader.containV2Signature(file) && ChannelReader.getChannelByV2(file).isEmpty()) {
|
||||
ChannelWriter.addChannelByV2(file, oaidString, true)
|
||||
} else {
|
||||
} else if (ChannelReader.containV1Signature(file) && ChannelReader.getChannelByV1(file).isEmpty()) {
|
||||
ChannelWriter.addChannelByV1(file, oaidString)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
SentryHelper.onEvent("ADD_CHANNEL_FAILED", "error_digest", e.localizedMessage)
|
||||
SentryHelper.onEvent(
|
||||
"ADD_CHANNEL_FAILED",
|
||||
"game_id", downloadEntity.gameId,
|
||||
"error_digest", e.localizedMessage
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user