This commit is contained in:
FongMi 2023-01-03 23:03:01 +08:00
parent 36caf6ca2d
commit 53d926050e
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ public class Auth {
}
public boolean isEmpty() {
return getRefreshToken().isEmpty() || getAccessToken().isEmpty();
return getRefreshToken().isEmpty();
}
public void clean() {

View File

@ -91,13 +91,13 @@ public class Ali {
if (!matcher.find()) return "";
String shareId = matcher.group(1);
String fileId = matcher.groupCount() == 3 ? matcher.group(3) : "";
auth.setShareId(shareId);
refreshShareToken();
auth.setShareId(shareId); refreshShareToken();
return Result.string(getVod(url, fileId));
}
public String playerContent(String flag, String id) {
String[] ids = id.split("\\+");
if (auth.isEmpty()) refreshAccessToken();
if (flag.equals("原畫")) {
return Result.get().url(getDownloadUrl(ids[0])).sub(getSub(ids)).header(getHeaders()).string();
} else {