From 16a44fa41ecf53351ea5181dbb6c47d6c250529b Mon Sep 17 00:00:00 2001 From: JarvanMo Date: Mon, 4 Nov 2024 12:15:31 +0800 Subject: [PATCH] =?UTF-8?q?ohos=E6=96=B0=E5=A2=9E=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/tobias.dart | 3 +-- lib/src/tobias_method_channel.dart | 3 +-- lib/src/tobias_platform_interface.dart | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/src/tobias.dart b/lib/src/tobias.dart index f2928ef..87b2de3 100644 --- a/lib/src/tobias.dart +++ b/lib/src/tobias.dart @@ -6,8 +6,7 @@ class Tobias { /// [universalLink] only supports iOS Future pay(String order, {AliPayEvn evn = AliPayEvn.online, - String? universalLink, - bool isOhosAutoSub = false}) async { + String? universalLink}) async { return await TobiasPlatform.instance .pay(order, evn: evn, universalLink: universalLink); } diff --git a/lib/src/tobias_method_channel.dart b/lib/src/tobias_method_channel.dart index 1bbfdc5..e3bf012 100644 --- a/lib/src/tobias_method_channel.dart +++ b/lib/src/tobias_method_channel.dart @@ -15,8 +15,7 @@ class MethodChannelTobias extends TobiasPlatform { @override Future pay(String order, {AliPayEvn evn = AliPayEvn.online, - String? universalLink, - bool isOhosAutoSub = false}) async { + String? universalLink}) async { return await methodChannel.invokeMethod("pay", {"order": order, "payEnv": evn.index, "universalLink": universalLink}); } diff --git a/lib/src/tobias_platform_interface.dart b/lib/src/tobias_platform_interface.dart index 318c239..86e7e5b 100644 --- a/lib/src/tobias_platform_interface.dart +++ b/lib/src/tobias_platform_interface.dart @@ -31,8 +31,7 @@ abstract class TobiasPlatform extends PlatformInterface { /// [evn] only supports Android due to native AliPaySDK Future pay(String order, {AliPayEvn evn = AliPayEvn.online, - String? universalLink, - bool isOhosAutoSub = false}) async { + String? universalLink}) async { throw UnimplementedError('pay() has not been implemented.'); }