mirror of
https://github.com/daydreamer-json/ak-endfield-api-archive.git
synced 2026-03-25 08:42:29 +01:00
refactor: asset mirroring logic in fetchAndSaveLatestGamePatches
- Comment out previous queueAssetForMirroring call for rsp.patch.url - Add missing GitHub mirror file in mirror_file_list.json
This commit is contained in:
@@ -274,11 +274,13 @@ async function fetchAndSaveLatestGamePatches(gameTargets: GameTarget[]) {
|
||||
|
||||
const subChns = appConfig.network.api.akEndfield.subChannel;
|
||||
if ([subChns.cnWinRel, subChns.cnWinRelBilibili, subChns.osWinRel].includes(target.subChannel)) {
|
||||
queueAssetForMirroring(
|
||||
rsp.patch.url,
|
||||
new URL(rsp.patch.url).pathname.split('/').filter(Boolean).slice(-3).join('_'),
|
||||
// queueAssetForMirroring(
|
||||
// rsp.patch.url,
|
||||
// new URL(rsp.patch.url).pathname.split('/').filter(Boolean).slice(-3).join('_'),
|
||||
// );
|
||||
rsp.patch.patches.forEach((e) =>
|
||||
queueAssetForMirroring(e.url, new URL(e.url).pathname.split('/').filter(Boolean).slice(-4).join('_')),
|
||||
);
|
||||
rsp.patch.patches.forEach((e) => queueAssetForMirroring(e.url));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user