Commit 41959ddd authored by 李增强's avatar 李增强

Initial commit

parent 52ddee2d
...@@ -6,14 +6,14 @@ class AlipayNoUtdid { ...@@ -6,14 +6,14 @@ class AlipayNoUtdid {
static const MethodChannel _channel = const MethodChannel('alipay_no_utdid'); static const MethodChannel _channel = const MethodChannel('alipay_no_utdid');
static Future<Map<String, String>> pay(String order, static Future<Map<String, String>> pay(String order,
{AliPayEvn payEnv = AliPayEvn.ONLINE}) { {AliPayEvn payEnv = AliPayEvn.ONLINE}) async {
return _channel var map = await _channel
.invokeMethod('pay', {"order": order, "payEnv": payEnv.index}); .invokeMethod('pay', {"order": order, "payEnv": payEnv.index});
return Map<String, String>.from(map);
} }
static Future<bool> isInstalled() { static Future<bool> isInstalled() {
return _channel return _channel.invokeMethod('isInstalled');
.invokeMethod('isInstalled');
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment