syncConfigTable method
同步配置表(在应用启动时调用)
complete
同步完成
instantly
即刻生效(每次获取)
Implementation
void syncConfigTable({required Function() complete, bool instantly = false}) {
if (instantly) {
_accessibilityNetTake(complete);
} else {
_getCacheConfig().then((configCache) {
Map<String, dynamic> map = JsonUtils.fromJson(configCache ?? "{}");
map.forEach((key, value) {
_tempMap[key] = value;
});
complete();
});
}
_startSyncConfig();
}