From 10f8b37187f23d664852e918d708d5d783cb0b50 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Mon, 14 Aug 2023 23:27:37 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20=E5=B1=8F=E8=94=BD=E6=8E=A8=E5=B9=BF?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E3=80=81=E7=99=BB=E5=BD=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?access=5Fkey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/http/video.dart | 4 +++- lib/pages/webview/controller.dart | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/http/video.dart b/lib/http/video.dart index deed6212..77712852 100644 --- a/lib/http/video.dart +++ b/lib/http/video.dart @@ -67,7 +67,9 @@ class VideoHttp { if (res.data['code'] == 0) { List list = []; for (var i in res.data['data']['items']) { - list.add(RecVideoItemAppModel.fromJson(i)); + if (i['card_goto'] != 'ad_av') { + list.add(RecVideoItemAppModel.fromJson(i)); + } } return {'status': true, 'data': list}; } else { diff --git a/lib/pages/webview/controller.dart b/lib/pages/webview/controller.dart index a0f6a44a..30b8e1af 100644 --- a/lib/pages/webview/controller.dart +++ b/lib/pages/webview/controller.dart @@ -69,6 +69,7 @@ class WebviewController extends GetxController { await SetCookie.onSet(tCookies, HttpString.tUrl); await UserHttp.userInfo(); var result = await UserHttp.userInfo(); + UserHttp.thirdLogin(); print('网页登录: $result'); if (result['status'] && result['data'].isLogin) { SmartDialog.showToast('登录成功');