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();