Skip to content

[细粒度PR] 下载完成后触发合并任务接线(最小反射方案)#2558

Open
Maoweicao wants to merge 2 commits intoxiaojieonly:BiLi_PC_Gamerfrom
Maoweicao:pr-layer3-merge-trigger
Open

[细粒度PR] 下载完成后触发合并任务接线(最小反射方案)#2558
Maoweicao wants to merge 2 commits intoxiaojieonly:BiLi_PC_Gamerfrom
Maoweicao:pr-layer3-merge-trigger

Conversation

@Maoweicao
Copy link
Copy Markdown
Contributor

目标

在下载完成路径接入“自动合并同名画廊”触发逻辑,并保持对依赖分支的最小耦合。

变更

  • DownloadManagerTYPE_ON_FINISH 成功分支新增触发逻辑
  • 触发条件:
    • info.legacy == 0
    • Settings.getMergeOnDownload()true
    • info.gid >= 0
  • 通过反射调用:
    • MergeDuplicateGalleryTask.mergeForGallery(context, gid)
    • BackgroundTaskManager.getInstance().submitBackgroundTask(...)

说明

  • 该实现避免了编译期强依赖,便于分层 PR 先行落地。
  • 若相关类尚未合入,逻辑会降级为告警日志,不影响下载主流程。

@Maoweicao Maoweicao changed the title [Draft][PR3.2] 下载完成后触发合并任务接线(最小反射方案) [细粒度PR] 下载完成后触发合并任务接线(最小反射方案) Apr 30, 2026
Maoweicao

This comment was marked as low quality.

@Maoweicao Maoweicao marked this pull request as ready for review April 30, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant