no info service found只在生产环境才记录

This commit is contained in:
zhl 2021-02-08 16:38:12 +08:00
parent 3f1802c35c
commit 98e46c51c9

View File

@ -92,7 +92,7 @@ export class Service {
}
let svrList = this.serviceMap.get(key)
if (svrList.length == 0 || !isProd) {
error('no info service found')
if (isProd) error('no info service found')
return config.info_svr
}
return 'http://' + svrList.randomOne() + '/svr'