mirror of
https://github.com/RubyMetric/chsrc
synced 2026-02-02 15:50:29 +08:00
修改API为 chef_set_rest_smURL_
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user