开票
This commit is contained in:
@@ -3,7 +3,7 @@ const uploadUrl = 'https://upload-z2.qbox.me'
|
||||
const debug = process.env.NODE_ENV == 'development' ? true : false;
|
||||
// #ifdef H5
|
||||
// const baseUrl = debug ? proxyApi : "http://wxgzh.sxczgkj.cn"
|
||||
const baseUrl = 'https://invoice.sxczgkj.cn/api/'//正式
|
||||
const baseUrl = 'https://invoice.sxczgkj.cn/api/' //正式
|
||||
// const baseUrl = 'http://192.168.2.23:8888/api/'//正式
|
||||
// const baseUrl = 'http://test.invoice.sxczgkj.cn/api/'//测试
|
||||
// #endif
|
||||
|
||||
@@ -37,17 +37,11 @@ async function request(options) {
|
||||
mask: true
|
||||
})
|
||||
}
|
||||
const system = uni.getSystemInfoSync();
|
||||
const platformInfo = {
|
||||
'ios': 2,
|
||||
'android': 1
|
||||
}
|
||||
options.header = {
|
||||
userId: uni.getStorageSync('userId'),
|
||||
// userId: uni.getStorageSync('userId'),
|
||||
'content-type': 'application/json'
|
||||
}
|
||||
let res = await uni.pro.request(options)
|
||||
console.log(res)
|
||||
if (res.code != 1) {
|
||||
if (options.toast) {
|
||||
uni.showToast({
|
||||
@@ -99,7 +93,7 @@ async function request(options) {
|
||||
})
|
||||
}
|
||||
return res
|
||||
|
||||
|
||||
}
|
||||
} catch (err) {
|
||||
console.warn('uni.request fail [network]', options, err)
|
||||
@@ -173,7 +167,7 @@ function get(url, data, toast = true) {
|
||||
return request({
|
||||
url,
|
||||
data,
|
||||
toast
|
||||
toast,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user