commit
71808670b6
|
@ -68,7 +68,7 @@ public class AppletModule extends BaseApi {
|
||||||
// 在Android 6.0、7.0系统的部分设备中热启动小程序时,如果context参数用mContext,会出现无法启动小程序的问题
|
// 在Android 6.0、7.0系统的部分设备中热启动小程序时,如果context参数用mContext,会出现无法启动小程序的问题
|
||||||
// 所以这里使用Application Context
|
// 所以这里使用Application Context
|
||||||
Context context = mContext.getApplicationContext();
|
Context context = mContext.getApplicationContext();
|
||||||
FinAppInfo.StartParams startParams = params == null ? null : new FinAppInfo.StartParams(params.get("path"), params.get("query"), params.get("scene"));
|
FinAppInfo.StartParams startParams = params == null ? null : new FinAppInfo.StartParams(params);
|
||||||
Log.d(TAG, "openApplet:" + appId + "," + param + "," + sequence + "," + apiServer + ", isSingleProcess:" + isSingleProcess);
|
Log.d(TAG, "openApplet:" + appId + "," + param + "," + sequence + "," + apiServer + ", isSingleProcess:" + isSingleProcess);
|
||||||
|
|
||||||
if (apiServer != null) {
|
if (apiServer != null) {
|
||||||
|
|
|
@ -1048,6 +1048,7 @@ class Mop {
|
||||||
final int? sequence,
|
final int? sequence,
|
||||||
final String? apiServer,
|
final String? apiServer,
|
||||||
final String? scene,
|
final String? scene,
|
||||||
|
final String? shareDepth,
|
||||||
final bool isSingleProcess = false,
|
final bool isSingleProcess = false,
|
||||||
}) async {
|
}) async {
|
||||||
Map<String, Object> params = {'appId': appId};
|
Map<String, Object> params = {'appId': appId};
|
||||||
|
@ -1058,6 +1059,7 @@ class Mop {
|
||||||
if (sequence != null) params["sequence"] = sequence;
|
if (sequence != null) params["sequence"] = sequence;
|
||||||
if (apiServer != null) params["apiServer"] = apiServer;
|
if (apiServer != null) params["apiServer"] = apiServer;
|
||||||
if (scene != null) param["scene"] = scene;
|
if (scene != null) param["scene"] = scene;
|
||||||
|
if (shareDepth != null) param["shareDepth"] = shareDepth;
|
||||||
params["isSingleProcess"] = isSingleProcess;
|
params["isSingleProcess"] = isSingleProcess;
|
||||||
final Map ret = await _channel.invokeMethod('openApplet', params);
|
final Map ret = await _channel.invokeMethod('openApplet', params);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue