feat(media-supply): resource cache sync and order flow refinements
Frontend CI / Frontend (push) Successful in 3m38s
Backend CI / Backend (push) Failing after 26m59s

Add a resource cache sync entrypoint (RunMediaResourceSyncOnce) driven
by the new scheduler job, and rework the backlink/sync worker around it.
Tune the meijiequan client and slow the default backlink sync interval
from 10m to 30m to reduce upstream pressure.

Trim unused public/transport surface (handler + router + swagger) and
simplify admin-web order management and ops-web media-supply views,
dropping stale shared-types fields.
This commit is contained in:
2026-06-02 14:50:36 +08:00
parent 842782b3dd
commit 723c3ffb86
14 changed files with 529 additions and 208 deletions
+1 -1
View File
@@ -844,7 +844,7 @@ func NormalizeMediaSupplyConfig(cfg *MediaSupplyConfig) {
cfg.Worker.SyncMaxAttempts = 2
}
if cfg.Worker.BacklinkSyncInterval <= 0 {
cfg.Worker.BacklinkSyncInterval = 10 * time.Minute
cfg.Worker.BacklinkSyncInterval = 30 * time.Minute
}
if cfg.Worker.BacklinkBatchSize <= 0 {
cfg.Worker.BacklinkBatchSize = 20