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; }