Merge branch 'fix/GHZS-5218' into 'release'

fix: 游戏提示解析包错误问题 https://jira.shanqu.cc/browse/GHZS-5218

See merge request halo/android/assistant-android!1628
This commit is contained in:
陈君陶
2024-04-16 15:05:02 +08:00

View File

@ -264,7 +264,7 @@ object NDownloadBridge : InnerDownloadListener, IErrorRetryHandler {
val file = File(downloadEntity.path)
val oaidString = "o|${HaloApp.getInstance().oaid}"
try {
if (ChannelReader.containV2Signature(file) && ChannelReader.getChannelByV2(file).isEmpty()) {
if (ChannelReader.containV2Signature(file)) {
ChannelWriter.addChannelByV2(file, oaidString, true)
} else if (ChannelReader.containV1Signature(file) && ChannelReader.getChannelByV1(file).isEmpty()) {
ChannelWriter.addChannelByV1(file, oaidString)