小调整
parent
d2f3f8fb45
commit
8ecc120766
|
@ -110,7 +110,7 @@ const configApi = {
|
||||||
let remoteConfig
|
let remoteConfig
|
||||||
try {
|
try {
|
||||||
remoteConfig = jsonApi.parse(body)
|
remoteConfig = jsonApi.parse(body)
|
||||||
} catch (e) {
|
} catch {
|
||||||
log.error(`远程配置内容格式不正确, url: ${remoteConfigUrl}, body: ${body}`)
|
log.error(`远程配置内容格式不正确, url: ${remoteConfigUrl}, body: ${body}`)
|
||||||
remoteConfig = null
|
remoteConfig = null
|
||||||
}
|
}
|
||||||
|
@ -212,7 +212,6 @@ const configApi = {
|
||||||
doDiff: mergeApi.doDiff,
|
doDiff: mergeApi.doDiff,
|
||||||
/**
|
/**
|
||||||
* 读取 config.json 后,合并配置
|
* 读取 config.json 后,合并配置
|
||||||
* @returns {*}
|
|
||||||
*/
|
*/
|
||||||
reload () {
|
reload () {
|
||||||
const configPath = _getConfigPath()
|
const configPath = _getConfigPath()
|
||||||
|
|
Loading…
Reference in New Issue