refactor: 1

pull/192/head
xiaojunnuo 3 years ago
parent 794458b006
commit 6f3013ce8d

@ -87,11 +87,15 @@ const configApi = {
clearInterval(timer)
}
const download = async () => {
try {
await configApi.downloadRemoteConfig()
configApi.reload()
} catch (e) {
log.error(e)
}
}
await download()
setInterval(download, 24 * 60 * 60 * 1000) // 1天
timer = setInterval(download, 24 * 60 * 60 * 1000) // 1天
},
downloadRemoteConfig () {
if (get().app.remoteConfig.enabled !== true) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 519 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Loading…
Cancel
Save