Commit e8c6c1ee authored by 汪林玲's avatar 汪林玲

更新

parent db3cb48d
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:jd_sdk/jdsdk.dart'; import 'package:jd_sdk/jdsdk.dart';
void main() => runApp(MyApp()); void main() => runApp(MyApp());
......
...@@ -11,8 +11,8 @@ class Jdsdk { ...@@ -11,8 +11,8 @@ class Jdsdk {
/// [appSecret] app密钥 /// [appSecret] app密钥
/// ///
static Future<Map<String,dynamic>> init({@required String appKey, @required String appSecret}) async { static Future<Map<String,dynamic>> init({@required String appKey, @required String appSecret}) async {
final Map<String,dynamic> version = await _channel.invokeMethod('init', {"appKey": appKey, "appSecret": appSecret}); final Map<dynamic,dynamic> version = await _channel.invokeMethod('init', {"appKey": appKey, "appSecret": appSecret});
return version; return Map<String,dynamic>.from(version);
} }
/// ///
......
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