You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.5 KiB
76 lines
1.5 KiB
import httpRequest from './request';
|
|
|
|
//默认请求地址
|
|
export const defaultRequest =query=>{
|
|
return httpRequest({
|
|
url:'mapi/api_v2011.php?appcode=DOPE+',
|
|
method:'post',
|
|
data:query,
|
|
errMsg:true,
|
|
isCookies:false,
|
|
isEncryption:false,
|
|
isLoad:true
|
|
})
|
|
}
|
|
|
|
//默认请求地址 不显示错误信息
|
|
export const defaultRequest1 =query=>{
|
|
return httpRequest({
|
|
url:'mapi/api_v2011.php?appcode=DOPE+',
|
|
method:'post',
|
|
data:query,
|
|
errMsg:false,
|
|
isCookies:false,
|
|
isEncryption:false,
|
|
isLoad:true
|
|
})
|
|
}
|
|
//默认请求地址 只用cookies请求数据
|
|
export const defaultRequest2 =query=>{
|
|
return httpRequest({
|
|
url:'mapi/api_v2011.php?appcode=DOPE+',
|
|
method:'post',
|
|
data:query,
|
|
errMsg:true,
|
|
isCookies:true,
|
|
isEncryption:false,
|
|
isLoad:true
|
|
})
|
|
}
|
|
//默认请求地址 只用cookies请求数据 对里面的对象进行加密
|
|
export const defaultRequest3 =(query,key)=>{
|
|
return httpRequest({
|
|
url:'mapi/api_v2011.php?appcode=DOPE+',
|
|
method:'post',
|
|
data:query,
|
|
errMsg:true,
|
|
isCookies:true,
|
|
isEncryption:true,
|
|
isLoad:true,
|
|
key:key
|
|
})
|
|
}
|
|
//默认请求地址 不显示等待加载
|
|
export const defaultRequest4 =query=>{
|
|
return httpRequest({
|
|
url:'mapi/api_v2011.php?appcode=DOPE+',
|
|
method:'post',
|
|
data:query,
|
|
errMsg:true,
|
|
isCookies:false,
|
|
isEncryption:false,
|
|
isLoad:false
|
|
})
|
|
}
|
|
|
|
export const defaultRequest5 =query=>{
|
|
return httpRequest({
|
|
url:'mapi/api_v2011.php?appcode=DOPE+',
|
|
method:'post',
|
|
data:query,
|
|
errMsg:true,
|
|
isCookies:false,
|
|
isEncryption:false,
|
|
isLoad:false
|
|
})
|
|
}
|
|
|