From 279f586a908e0da6282a6547fee2d016a545417f Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sun, 11 May 2025 14:42:23 +0800 Subject: [PATCH] opt: pgc coin Signed-off-by: bggRGjQaUbCoE --- lib/pages/video/introduction/pgc/controller.dart | 2 +- lib/pages/video/introduction/pgc/view.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pages/video/introduction/pgc/controller.dart b/lib/pages/video/introduction/pgc/controller.dart index 846d602c..7ee237aa 100644 --- a/lib/pages/video/introduction/pgc/controller.dart +++ b/lib/pages/video/introduction/pgc/controller.dart @@ -129,7 +129,7 @@ class BangumiIntroController extends GetxController { } // 投币 - Future actionCoinVideo() async { + void actionCoinVideo() { if (!isLogin) { SmartDialog.showToast('账号未登录'); return; diff --git a/lib/pages/video/introduction/pgc/view.dart b/lib/pages/video/introduction/pgc/view.dart index 880c0d32..c8cd1cba 100644 --- a/lib/pages/video/introduction/pgc/view.dart +++ b/lib/pages/video/introduction/pgc/view.dart @@ -46,7 +46,7 @@ class _BangumiIntroPanelState extends State late final _favKey = GlobalKey(); bool isProcessing = false; - Future handleState(Future Function() action) async { + Future handleState(FutureOr Function() action) async { if (isProcessing.not) { isProcessing = true; await action();