Clean code
This commit is contained in:
parent
81cd2ff36b
commit
a85a745943
|
|
@ -456,11 +456,7 @@ public class AliYun {
|
|||
}
|
||||
|
||||
private String proxyVideoUrl(String cate, String shareId, String fileId) {
|
||||
int thread = 1;
|
||||
String url = String.format(Proxy.getUrl() + "?do=ali&type=video&cate=%s&shareId=%s&fileId=%s", cate, shareId, fileId);
|
||||
if ("open".equals(cate)) thread = 10;
|
||||
if ("share".equals(cate)) thread = 10;
|
||||
return thread == 1 ? url : ProxyVideo.url(url, thread);
|
||||
return ProxyVideo.url(String.format(Proxy.getUrl() + "?do=ali&type=video&cate=%s&shareId=%s&fileId=%s", cate, shareId, fileId), 20);
|
||||
}
|
||||
|
||||
private String proxyVideoUrl(String cate, String shareId, String fileId, String templateId) {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
349a7accbf77c311dc3b82150a9f29ea
|
||||
a6e70c754f96ee89d1dc455a87f9eae0
|
||||
|
|
|
|||
Loading…
Reference in New Issue