add bili qrcode by tangsan

This commit is contained in:
FongMi 2023-04-06 22:18:22 +08:00
parent 10c0dca159
commit fd79e2cafb
3 changed files with 3 additions and 3 deletions

View File

@ -9,6 +9,7 @@ import android.view.Gravity;
import android.webkit.CookieManager;
import android.widget.FrameLayout;
import android.widget.ImageView;
import com.github.catvod.bean.Class;
import com.github.catvod.bean.Result;
import com.github.catvod.bean.Vod;
@ -195,7 +196,6 @@ public class Bili extends Spider {
checkService();
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void loadWebView() {
CookieManager cookieManager = CookieManager.getInstance();
@ -206,7 +206,7 @@ public class Bili extends Spider {
OkHttp.stringNoRedirect(finalUrl, getHeaders(), respHeaderMap);
cookie = "";
for (String kk : Objects.requireNonNull(respHeaderMap.get("set-cookie"))) {
cookie += kk.split(";")[0] + ";";
cookie = cookie.concat(kk.split(";")[0] + ";");
}
Prefers.put("BiliCookie", cookie);
}

Binary file not shown.

View File

@ -1 +1 @@
a3a0ad16814a815fdad26b236cdd5a05
5b77e550fc0e997d1c7ec4dc9eca695a