This commit is contained in:
nbwzlyd1 2023-04-30 13:25:45 +08:00 committed by =
parent d35a9bd1e6
commit f1677f3524
2 changed files with 7 additions and 1 deletions

View File

@ -38,6 +38,10 @@ public abstract class Spider {
return ""; return "";
} }
public String getToken() {
return "";
}
public boolean manualVideoCheck() { public boolean manualVideoCheck() {
return false; return false;
} }

View File

@ -1,6 +1,7 @@
package com.github.catvod.spider; package com.github.catvod.spider;
import android.content.Context; import android.content.Context;
import android.text.TextUtils;
import com.github.catvod.ali.API; import com.github.catvod.ali.API;
import com.github.catvod.bean.Result; import com.github.catvod.bean.Result;
@ -20,7 +21,8 @@ public class Ali extends Spider {
@Override @Override
public void init(Context context, String extend) { public void init(Context context, String extend) {
API.get().setRefreshToken(extend); String token = getToken();
API.get().setRefreshToken(TextUtils.isEmpty(token) ? extend : token);
} }
@Override @Override