From 7ccda74c43a3426c3a2429631bafdb902de308d5 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Fri, 4 Dec 2020 09:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=BC=80=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3=E6=94=AF=E6=8C=81=E4=BC=A0=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mop.dart | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/mop.dart b/lib/mop.dart index 0155727..7ff0b3e 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -94,14 +94,26 @@ class Mop { /// [query] is miniprogram query parameters. example key1=value1&key2=value2 /// /// - Future openApplet(final String appId, - {final String path, final String query, final int sequence}) async { + Future openApplet( + final String appId, { + final String path, + final String query, + final int sequence, + final String apiServer, + final String apiPrefix, + final String fingerprint, + final String cryptType, + }) async { Map params = {'appId': appId}; Map param = {}; if (path != null) param["path"] = path; if (query != null) param["query"] = query; if (param.length > 0) params["params"] = param; if (sequence != null) params["sequence"] = sequence; + if (apiServer != null) params["apiServer"] = apiServer; + if (apiPrefix != null) params["apiPrefix"] = apiPrefix; + if (fingerprint != null) params["fingerprint"] = fingerprint; + if (cryptType != null) params["cryptType"] = cryptType; final Map ret = await _channel.invokeMethod('openApplet', params); return ret; }