增加初始化page-limit属性
parent
a887a497a6
commit
fbacc07996
|
@ -76,6 +76,10 @@ public class BaseModule extends BaseApi {
|
|||
if (debug == null) debug = false;
|
||||
Boolean bindAppletWithMainProcess = (Boolean) param.get("bindAppletWithMainProcess");
|
||||
if (bindAppletWithMainProcess == null) bindAppletWithMainProcess = false;
|
||||
Integer pageCountLimit = (Integer) param.get("pageCountLimit");
|
||||
if (pageCountLimit == null) {
|
||||
pageCountLimit = 0;
|
||||
}
|
||||
|
||||
String customWebViewUserAgent = (String) param.get("customWebViewUserAgent");
|
||||
Integer appletIntervalUpdateLimit = (Integer) param.get("appletIntervalUpdateLimit");
|
||||
|
@ -117,7 +121,8 @@ public class BaseModule extends BaseApi {
|
|||
.setUserId(userId)
|
||||
.setDebugMode(debug)
|
||||
.setDisableRequestPermissions(disablePermission)
|
||||
.setBindAppletWithMainProcess(bindAppletWithMainProcess);
|
||||
.setBindAppletWithMainProcess(bindAppletWithMainProcess)
|
||||
.setPageCountLimit(pageCountLimit);
|
||||
|
||||
if (customWebViewUserAgent != null)
|
||||
builder.setCustomWebViewUserAgent(customWebViewUserAgent);
|
||||
|
|
|
@ -314,6 +314,7 @@ class Mop {
|
|||
String? userId,
|
||||
bool debug = false,
|
||||
bool bindAppletWithMainProcess = false,
|
||||
int? pageCountLimit = 0,
|
||||
List<FinStoreConfig>? finStoreConfigs,
|
||||
UIConfig? uiConfig,
|
||||
String? customWebViewUserAgent,
|
||||
|
@ -334,6 +335,7 @@ class Mop {
|
|||
'userId': userId,
|
||||
"debug": debug,
|
||||
"bindAppletWithMainProcess": bindAppletWithMainProcess,
|
||||
"pageCountLimit": pageCountLimit,
|
||||
"finStoreConfigs": storeConfigs,
|
||||
"uiConfig": uiConfig?.toMap(),
|
||||
"customWebViewUserAgent": customWebViewUserAgent,
|
||||
|
|
Loading…
Reference in New Issue