master
xiaozhiyong 7 months ago
parent 0c0aac6fac
commit 5848de68fa
  1. 5
      utils/request.js

@ -4,7 +4,7 @@ import utils from '@/utils/encode'
// const env = process.env.NODE_ENV // const env = process.env.NODE_ENV
const env = 'production'/* */ const env = 'production'/* */
// const env = 'test' // const env = 'test'
// const testUrl = 'http://192.168.0.254:38080' const testUrl = 'http://192.168.110.77:38080'
// 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
@ -22,9 +22,8 @@ service.interceptors.request.use(
uni.showLoading({ uni.showLoading({
title: '加载中...' title: '加载中...'
}) })
const token = uni.getStorageSync('Authorization') const token = uni.getStorageSync('Authorization') || " "
const unionId = uni.getStorageSync('unionid') const unionId = uni.getStorageSync('unionid')
console.log(unionId)
const openId = uni.getStorageSync('openid') const openId = uni.getStorageSync('openid')
// const accountSources = 'WE_CHAT_PROGRAM' // const accountSources = 'WE_CHAT_PROGRAM'
const accountSources = 'LOGIN_MP_WECHAT' const accountSources = 'LOGIN_MP_WECHAT'

Loading…
Cancel
Save