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

Initial commit

parent 52ddee2d
......@@ -6,14 +6,14 @@ class AlipayNoUtdid {
static const MethodChannel _channel = const MethodChannel('alipay_no_utdid');
static Future<Map<String, String>> pay(String order,
{AliPayEvn payEnv = AliPayEvn.ONLINE}) {
return _channel
{AliPayEvn payEnv = AliPayEvn.ONLINE}) async {
var map = await _channel
.invokeMethod('pay', {"order": order, "payEnv": payEnv.index});
return Map<String, String>.from(map);
}
static Future<bool> isInstalled() {
return _channel
.invokeMethod('isInstalled');
return _channel.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