revert 1
caolc
曹连存 1 year ago
parent 4d0ae45c54
commit afa3300007
  1. 13
      utils/request.js

@ -3,8 +3,13 @@ import utils from '@/utils/encode'
// const env = process.env.NODE_ENV // const env = process.env.NODE_ENV
// const env = 'production'/* */ // const env = 'production'/* */
<<<<<<< HEAD
const env = 'test' const env = 'test'
const testUrl = 'http://192.168.0.20:38080' const testUrl = 'http://192.168.0.20:38080'
=======
const env = 'production'
const testUrl = 'http://192.168.110.230:38080'
>>>>>>> ec08020202bf7a2252bf4634c43842a7de91db40
// const productUrl = 'http://121.196.213.68/adminapi' //预生产 // const productUrl = 'http://121.196.213.68/adminapi' //预生产
const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new
@ -55,8 +60,8 @@ service.interceptors.request.use(
config.data = data config.data = data
// } // }
} else { } else {
console.log('\n\n-----------------------') // console.log('\n\n-----------------------')
console.log('参数', config.url, '参数加密前', config.data) // console.log('参数', config.url, '参数加密前', config.data)
url = config.url url = config.url
} }
return config return config
@ -84,8 +89,8 @@ service.interceptors.response.use(
// console.log('返回', response.config.url, '返回结果',res) // console.log('返回', response.config.url, '返回结果',res)
} }
} else { } else {
console.log('返回', response.config.url, '返回结果未加密', res) // console.log('返回', response.config.url, '返回结果未加密', res)
console.log('-------------------------------------------\n\n') // console.log('-------------------------------------------\n\n')
} }
uni.hideLoading(); uni.hideLoading();

Loading…
Cancel
Save