修改
This commit is contained in:
+5
-5
@@ -1,7 +1,7 @@
|
||||
// const baseUrl = "https://api.collect.hs.hnzhwlkj.club/"; //这里放置url域名32044
|
||||
// const baseUrl = "https://api.collect.xyh.muzili.top/"; //这里放置url域名32044
|
||||
const baseUrl = "https://usedcar.dev.hnxinyouhe.com/"; //这里放置url域名32044
|
||||
// const baseUrl = "https://114.215.24.240:8106/api/v1/"; //这里放置url域名32044
|
||||
const baseUrl = "https://userdcar-server.hnxinyouhe.com/"; //这里放置url域名32044
|
||||
// const baseUrl = "https://usedcar.dev.hnxinyouhe.com/"; //这里放置url域名32044
|
||||
// const baseUrl = "http://219.157.255.213:36010/"; //这里放置url域名32044
|
||||
export function request(options){//封装的requset
|
||||
let { url,data,method } = options;
|
||||
data = data || {},
|
||||
@@ -13,7 +13,7 @@ export function request(options){//封装的requset
|
||||
uni.request({//这里是uniapp网络请求的api
|
||||
url: baseUrl + url, //仅为示例,并非真实接口地址。
|
||||
data,
|
||||
header:{'content-type': 'application/x-www-form-urlencoded','Fdesk-Auth-Token':uni.getStorageSync('token'),'Fdesk-Login-Type': 'feishu','Fdesk-System-Code':'fdesk'},
|
||||
header:{'Fdesk-Auth-Token':uni.getStorageSync('token'),'Fdesk-Login-Type': 'feishu','Fdesk-System-Code':'fdesk'},
|
||||
method:method||"GET",//默认请求方式是get
|
||||
success: (res) => {
|
||||
resolve(res)
|
||||
@@ -31,7 +31,7 @@ export function requestx(options){//封装的requset
|
||||
uni.request({//这里是uniapp网络请求的api
|
||||
url: baseUrl + url, //仅为示例,并非真实接口地址。
|
||||
data,
|
||||
header:{'content-type': 'application/x-www-form-urlencoded','Authorization': 'Bearer ' + uni.getStorageSync('openid')},
|
||||
header:{'Authorization': 'Bearer ' + uni.getStorageSync('openid')},
|
||||
method:method||"GET",//默认请求方式是get
|
||||
success: (res) => {
|
||||
resolve(res)
|
||||
|
||||
Reference in New Issue
Block a user