refactor: 1
| 
						 | 
				
			
			@ -87,11 +87,15 @@ const configApi = {
 | 
			
		|||
      clearInterval(timer)
 | 
			
		||||
    }
 | 
			
		||||
    const download = async () => {
 | 
			
		||||
      await configApi.downloadRemoteConfig()
 | 
			
		||||
      configApi.reload()
 | 
			
		||||
      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) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
		 Before Width: | Height: | Size: 43 KiB  | 
| 
		 Before Width: | Height: | Size: 5.0 KiB  | 
| 
		 Before Width: | Height: | Size: 519 B  | 
| 
		 Before Width: | Height: | Size: 853 B  | 
| 
		 Before Width: | Height: | Size: 10 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 1.8 KiB  | 
| 
		 Before Width: | Height: | Size: 21 KiB  | 
| 
		 Before Width: | Height: | Size: 2.5 KiB  | 
| 
		 Before Width: | Height: | Size: 353 KiB  | 
| 
		 After Width: | Height: | Size: 2.5 KiB  |