修改API为 chef_set_rest_smURL_

This commit is contained in:
Aoran Zeng
2026-01-21 18:12:38 +08:00
parent d766a6f398
commit 0180558cb7
16 changed files with 28 additions and 27 deletions

View File

@@ -59,11 +59,15 @@ def_sources_end()
//
// 调整/设置上述某一个镜像站的所提供源的 "精准测速链接"
chef_set_smURL (this, &UpstreamProvider, "新的测速链接")
// 把所有上述源的 "测速链接" 设置为 "换源链接" + postfix
chef_set_all_smURL_with_postfix (this, "/dir/BigFile.tar.gz");
chef_set_smURL (this, &UpstreamProvider, "新的测速链接");
// 设置上述某一个镜像站的所提供源的 "精准测速链接" 设置为 "换源链接" + postfix
chef_set_smURL_with_postfix (this, &UpstreamProvider, "/dir/BigFile.tar.gz");
// 基于 "换源链接" 做更自定义的操作
chef_set_all_smURL_with_func (this, func, data);
chef_set_smURL_with_func (this, &UpstreamProvider, func, data);
// 把所有上述源中还未设置 "精准测速链接" 的源进行设置
chef_set_rest_smURL_with_postfix (this, "/dir/BigFile.tar.gz");
chef_set_rest_smURL_with_func (this, func, data);
// 调整某一个镜像站(Provider)的 "测速链接"
chef_set_provider_smURL (&Tencent, "https://mirrors.cloud.tencent.com/npm/BigFile.tar.gz");