Commit 3a649365 authored by wty's avatar wty

修改配置,测试10

parent 7bdbd7b4
...@@ -6,6 +6,7 @@ const config = require('../config/getConfig')() ...@@ -6,6 +6,7 @@ const config = require('../config/getConfig')()
console.info('CONFIG:',config) console.info('CONFIG:',config)
const getMysql = new Promise((resolve)=>{ const getMysql = new Promise((resolve)=>{
request(config['remote_config_url'],{},(error, request, body)=>{ request(config['remote_config_url'],{},(error, request, body)=>{
console.info('apolloConfig:',body)
const data = JSON.parse(body) const data = JSON.parse(body)
const source = data['propertySources'][0]['source'] const source = data['propertySources'][0]['source']
const username = source['apollo.mysql.duiba_web_tool.username'] const username = source['apollo.mysql.duiba_web_tool.username']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment