Skip to content

Commit 2be5360

Browse files
committed
无需使用EntryPathPair,只需EntryPath即可
1 parent 62fa57b commit 2be5360

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Qiniu/RS/RSClient.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ OPS [(int)op],
8080
return Call(url);
8181
}
8282

83-
private CallRet opFetch(FileHandle op, string fromUrl, EntryPathPair pari)
83+
private CallRet opFetch(FileHandle op, string fromUrl, EntryPath entryPath)
8484
{
8585
string url = string.Format("{0}/{1}/{2}/to/{3}",
8686
Config.RS_HOST,
8787
OPS[(int)op],
8888
Base64URLSafe.Encode(fromUrl),
89-
Base64URLSafe.Encode(pari.URIDest));
89+
Base64URLSafe.Encode(entryPath.URI));
9090
return Call (url);
9191
}
9292

@@ -143,11 +143,11 @@ public CallRet Copy (EntryPathPair pathPair)
143143
/// 抓取资源
144144
/// </summary>
145145
/// <param name="fromUrl">需要抓取的文件URL</param>
146-
/// <param name="pathPair">标准EntryPathPai对应, 可不输入source bucket及source key</param>
146+
/// <param name="entryPath">目标entryPath</param>
147147
/// <returns>见<see cref="CallRet">CallRet</see></returns>
148-
public CallRet Fetch(string fromUrl, EntryPathPair pathPair)
148+
public CallRet Fetch(string fromUrl, EntryPath entryPath)
149149
{
150-
return opFetch(FileHandle.FETCH, fromUrl, pathPair);
150+
return opFetch(FileHandle.FETCH, fromUrl, entryPath);
151151
}
152152

153153
/// <summary>

0 commit comments

Comments
 (0)