From 70cf27789f715b4aa6083dc9f7de716427154082 Mon Sep 17 00:00:00 2001 From: orz12 Date: Fri, 19 Jan 2024 13:53:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=8D=E7=99=BB=E5=BD=95=E7=9C=8B1080?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/http/video.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/http/video.dart b/lib/http/video.dart index a6a23f83..923e93a2 100644 --- a/lib/http/video.dart +++ b/lib/http/video.dart @@ -140,6 +140,12 @@ class VideoHttp { data['bvid'] = bvid; } + // 免登录查看1080p + if (userInfoCache.get('userInfoCache') == null && + setting.get(SettingBoxKey.p1080, defaultValue: true)) { + data['try_look'] = 1; + } + Map params = await WbiSign().makSign({ ...data, 'fourk': 1, @@ -148,11 +154,6 @@ class VideoHttp { 'web_location': 1550101, }); - // 免登录查看1080p - if (userInfoCache.get('userInfoCache') == null && - setting.get(SettingBoxKey.p1080, defaultValue: true)) { - data['try_look'] = 1; - } try { var res = await Request().get(Api.videoUrl, data: params); if (res.data['code'] == 0) {