feat:X5 CDN地址做成可配置项
parent
d6c6d1fc10
commit
9a6e6b25fe
|
@ -67,6 +67,17 @@ public class BaseModule extends BaseApi {
|
||||||
if (disablePermission == null) {
|
if (disablePermission == null) {
|
||||||
disablePermission = false;
|
disablePermission = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Boolean useLocalTbsCore = (Boolean) param.get("useLocalTbsCore");
|
||||||
|
if (useLocalTbsCore == null) {
|
||||||
|
useLocalTbsCore = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
String tbsCoreUrl = "";
|
||||||
|
if (param.get("tbsCoreUrl") != null) {
|
||||||
|
tbsCoreUrl = (String) param.get("tbsCoreUrl");
|
||||||
|
}
|
||||||
|
|
||||||
String userId = "";
|
String userId = "";
|
||||||
if (param.get("userId") != null) {
|
if (param.get("userId") != null) {
|
||||||
userId = (String) param.get("userId");
|
userId = (String) param.get("userId");
|
||||||
|
@ -126,8 +137,8 @@ public class BaseModule extends BaseApi {
|
||||||
.setBindAppletWithMainProcess(bindAppletWithMainProcess)
|
.setBindAppletWithMainProcess(bindAppletWithMainProcess)
|
||||||
.setLogLevel(XLogLevel.LEVEL_VERBOSE)
|
.setLogLevel(XLogLevel.LEVEL_VERBOSE)
|
||||||
.setXLogDir(new File(getContext().getExternalCacheDir(),"xlog"))
|
.setXLogDir(new File(getContext().getExternalCacheDir(),"xlog"))
|
||||||
.setUseLocalTbsCore(true)
|
.setUseLocalTbsCore(useLocalTbsCore)
|
||||||
.setTbsCoreUrl("https://www-cdn.finclip.com/sdk/x5/latest/");
|
.setTbsCoreUrl(tbsCoreUrl);
|
||||||
|
|
||||||
// .setPageCountLimit(pageCountLimit);
|
// .setPageCountLimit(pageCountLimit);
|
||||||
|
|
||||||
|
|
|
@ -431,6 +431,9 @@ class Mop {
|
||||||
String? customWebViewUserAgent,
|
String? customWebViewUserAgent,
|
||||||
int? appletIntervalUpdateLimit,
|
int? appletIntervalUpdateLimit,
|
||||||
int? maxRunningApplet,
|
int? maxRunningApplet,
|
||||||
|
bool useLocalTbsCore = false,
|
||||||
|
String? tbsCoreUrl
|
||||||
|
|
||||||
}) async {
|
}) async {
|
||||||
List<Map<String, dynamic>>? storeConfigs =
|
List<Map<String, dynamic>>? storeConfigs =
|
||||||
finStoreConfigs?.map((e) => e.toMap()).toList();
|
finStoreConfigs?.map((e) => e.toMap()).toList();
|
||||||
|
@ -451,7 +454,9 @@ class Mop {
|
||||||
"uiConfig": uiConfig?.toMap(),
|
"uiConfig": uiConfig?.toMap(),
|
||||||
"customWebViewUserAgent": customWebViewUserAgent,
|
"customWebViewUserAgent": customWebViewUserAgent,
|
||||||
"appletIntervalUpdateLimit": appletIntervalUpdateLimit,
|
"appletIntervalUpdateLimit": appletIntervalUpdateLimit,
|
||||||
"maxRunningApplet": maxRunningApplet
|
"maxRunningApplet": maxRunningApplet,
|
||||||
|
"useLocalTbsCore": useLocalTbsCore,
|
||||||
|
"tbsCoreUrl": tbsCoreUrl
|
||||||
});
|
});
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue