mirror of
https://github.com/RubyMetric/chsrc
synced 2026-02-02 07:40:27 +08:00
使用 repoURL 与 smURL
This commit is contained in:
@@ -28,7 +28,7 @@ def_sources_end()
|
||||
//
|
||||
|
||||
// 调整上述某一个镜像站的所提供源的 "换源链接"
|
||||
chef_set_url (this, &UpstreamProvider, "新的换源链接");
|
||||
chef_set_repoURL (this, &UpstreamProvider, "新的换源链接");
|
||||
```
|
||||
|
||||
<br>
|
||||
@@ -59,14 +59,14 @@ def_sources_end()
|
||||
//
|
||||
|
||||
// 调整/设置上述某一个镜像站的所提供源的 "精准测速链接"
|
||||
chef_set_smurl (this, &UpstreamProvider, "新的测速链接")
|
||||
chef_set_smURL (this, &UpstreamProvider, "新的测速链接")
|
||||
// 把所有上述源的 "测速链接" 设置为 "换源链接" + postfix
|
||||
chef_set_all_smurl_with_postfix (this, "/dir/BigFile.tar.gz");
|
||||
chef_set_all_smURL_with_postfix (this, "/dir/BigFile.tar.gz");
|
||||
// 基于 "换源链接" 做更自定义的操作
|
||||
chef_set_all_smurl_with_func (this, func, data);
|
||||
chef_set_all_smURL_with_func (this, func, data);
|
||||
|
||||
// 调整某一个镜像站(Provider)的 "测速链接"
|
||||
chef_set_provider_smurl (&Tencent, "https://mirrors.cloud.tencent.com/npm/BigFile.tar.gz");
|
||||
chef_set_provider_smURL (&Tencent, "https://mirrors.cloud.tencent.com/npm/BigFile.tar.gz");
|
||||
// 调整某一个镜像站(Provider)的 "测速精度"
|
||||
chef_set_provider_sm_accuracy (&UpstreamProvider, ROUGH);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user