更新
This commit is contained in:
@@ -7,8 +7,8 @@ const env = 'production'/* */
|
||||
const testUrl = 'http://192.168.110.77:38080'
|
||||
// const productUrl = 'http://121.196.213.68/adminapi' //预生产
|
||||
|
||||
const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
|
||||
// const productUrl = 'http://uat.xingoil.com/adminapi' // 生产,加密 new
|
||||
// const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
|
||||
const productUrl = 'http://uat.xingoil.com/adminapi' // 生产,加密 new
|
||||
const service = axios.create({
|
||||
baseURL: env == 'production' ? productUrl : testUrl,
|
||||
// baseURL: testUrl,
|
||||
@@ -34,6 +34,16 @@ service.interceptors.request.use(
|
||||
config.headers['accountSources'] = accountSources
|
||||
config.headers['imei'] = unionId
|
||||
config.headers['dataSources'] = 'MP'
|
||||
|
||||
if(['/oil-site/oilSiteAppInfo/findKASiteInfoByPage','/oil-site/oilSiteAppInfo/getSiteDetailsByKA','/oil-site/oilSiteAppInfo/getSitePriceKAByBelong'].includes(config.url)) {
|
||||
let parentCompanyId = config.baseURL === 'https://www.xingoil.com/adminapi' ? '1812649739013771264' : '1810568376122056704'
|
||||
if(config.data.params) {
|
||||
config.data.params['parentCompanyId'] = parentCompanyId
|
||||
}else config.data['parentCompanyId'] = parentCompanyId
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (env === 'production') {
|
||||
// 生产环境,加密,不输出任何东西
|
||||
|
||||
Reference in New Issue
Block a user