Update
This commit is contained in:
parent
23640e8e13
commit
e1d30eb8ed
|
|
@ -449,15 +449,11 @@ public class AliYun {
|
|||
}
|
||||
|
||||
private String proxyVideoUrl(String cate, String shareId, String fileId) {
|
||||
String aliUrl = String.format(Proxy.getUrl() + "?do=ali&type=video&cate=%s&shareId=%s&fileId=%s", cate, shareId, fileId);
|
||||
int thread = 1;
|
||||
if ("open".equals(cate)) {
|
||||
thread = 10;
|
||||
} else if ("share".equals(cate)) {
|
||||
thread = 10;
|
||||
}
|
||||
if (thread == 1) return aliUrl;
|
||||
return ProxyVideo.url(aliUrl, thread);
|
||||
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);
|
||||
}
|
||||
|
||||
private String proxyVideoUrl(String cate, String shareId, String fileId, String templateId) {
|
||||
|
|
|
|||
|
|
@ -19,10 +19,9 @@ public class ProxyVideo {
|
|||
|
||||
private static final String GO_SERVER = "http://127.0.0.1:7777/";
|
||||
|
||||
public static boolean go() {
|
||||
public static void go() {
|
||||
if (OkHttp.string(GO_SERVER).isEmpty()) OkHttp.string("http://127.0.0.1:" + Proxy.getPort() + "/go");
|
||||
while (OkHttp.string(GO_SERVER).isEmpty()) SystemClock.sleep(20);
|
||||
return true;
|
||||
}
|
||||
|
||||
public static String url(String url, int thread) {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
430c09fd9d279d1b5d1fdebbae7e1d67
|
||||
5d1ab45ff233a49e9bc9b9a1554b38a9
|
||||
|
|
|
|||
Loading…
Reference in New Issue