alitoken
This commit is contained in:
parent
d35a9bd1e6
commit
f1677f3524
|
|
@ -38,6 +38,10 @@ public abstract class Spider {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getToken() {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
public boolean manualVideoCheck() {
|
public boolean manualVideoCheck() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue