From b0672a0fbe292111e588934c812dde84db2d6c32 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Sat, 19 Jun 2021 14:26:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90update=E3=80=91=20=E8=BF=98=E5=8E=9F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/mop.podspec | 4 ++-- lib/mop.dart | 19 ++----------------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/ios/mop.podspec b/ios/mop.podspec index 8bf5d64..91a0dba 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk. s.dependency 'Flutter' s.ios.deployment_target = '9.0' - s.dependency 'FinApplet' , '2.30.0-alpha20210618v06' - s.dependency 'FinAppletExt' , '2.30.0-alpha20210618v06' + s.dependency 'FinApplet' , '2.30.0-alpha20210619v02' + s.dependency 'FinAppletExt' , '2.30.0-alpha20210619v02' end diff --git a/lib/mop.dart b/lib/mop.dart index 30fbd31..0b30f08 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -9,19 +9,6 @@ typedef MopEventErrorCallback = void Function(dynamic event); typedef ExtensionApiHandler = Future Function(dynamic params); -class ServerConfig { - String appkey; - String secret; - String apiServer; - String apiPrefix; - String cryptType; - - ServerConfig(this.appkey, this.secret, this.apiServer, this.apiPrefix, this.cryptType); - - Map toJson() => - {'appkey': appkey, 'secret': secret, 'apiServer': apiServer, 'apiPrefix': apiPrefix, 'cryptType':cryptType}; -} - class Mop { static final Mop _instance = new Mop._internal(); MethodChannel _channel; @@ -87,8 +74,7 @@ class Mop { String apiPrefix, String cryptType, bool disablePermission, - String userId, - List serverConfigs}) async { + String userId}) async { final Map ret = await _channel.invokeMethod('initialize', { 'appkey': appkey, 'secret': secret, @@ -96,8 +82,7 @@ class Mop { 'apiPrefix': apiPrefix, 'cryptType': cryptType, 'disablePermission': disablePermission, - 'userId': userId, - 'serverConfigs',serverConfigs.map((e) => e.toJson()) + 'userId': userId }); return ret; }