Skip to content

Commit 16a44fa

Browse files
committed
ohos新增自动订阅支付
1 parent 48fcd5b commit 16a44fa

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

lib/src/tobias.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ class Tobias {
66
/// [universalLink] only supports iOS
77
Future<Map> pay(String order,
88
{AliPayEvn evn = AliPayEvn.online,
9-
String? universalLink,
10-
bool isOhosAutoSub = false}) async {
9+
String? universalLink}) async {
1110
return await TobiasPlatform.instance
1211
.pay(order, evn: evn, universalLink: universalLink);
1312
}

lib/src/tobias_method_channel.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ class MethodChannelTobias extends TobiasPlatform {
1515
@override
1616
Future<Map> pay(String order,
1717
{AliPayEvn evn = AliPayEvn.online,
18-
String? universalLink,
19-
bool isOhosAutoSub = false}) async {
18+
String? universalLink}) async {
2019
return await methodChannel.invokeMethod("pay",
2120
{"order": order, "payEnv": evn.index, "universalLink": universalLink});
2221
}

lib/src/tobias_platform_interface.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ abstract class TobiasPlatform extends PlatformInterface {
3131
/// [evn] only supports Android due to native AliPaySDK
3232
Future<Map> pay(String order,
3333
{AliPayEvn evn = AliPayEvn.online,
34-
String? universalLink,
35-
bool isOhosAutoSub = false}) async {
34+
String? universalLink}) async {
3635
throw UnimplementedError('pay() has not been implemented.');
3736
}
3837

0 commit comments

Comments
 (0)