|
@ -2,6 +2,7 @@ import request from '../utils/request'; |
|
|
import request1 from '../utils/request1'; |
|
|
import request1 from '../utils/request1'; |
|
|
import request2 from '../utils/request2'; |
|
|
import request2 from '../utils/request2'; |
|
|
import request3 from '../utils/requsetThree.js'; |
|
|
import request3 from '../utils/requsetThree.js'; |
|
|
|
|
|
import request4 from "../utils/request4"; |
|
|
import JSEncrypt from 'jsencrypt' |
|
|
import JSEncrypt from 'jsencrypt' |
|
|
import url1 from '../utils/url' |
|
|
import url1 from '../utils/url' |
|
|
const httpGet = (query,url) => { |
|
|
const httpGet = (query,url) => { |
|
@ -11,6 +12,19 @@ const httpGet = (query,url) => { |
|
|
params: query |
|
|
params: query |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
const httpPostE = (query,url) => { |
|
|
|
|
|
let url1='' |
|
|
|
|
|
// if (process.env.NODE_ENV === "development") {
|
|
|
|
|
|
// url1='/face-api1'
|
|
|
|
|
|
// }else {
|
|
|
|
|
|
// url1=''
|
|
|
|
|
|
// }
|
|
|
|
|
|
return request4({ |
|
|
|
|
|
url: url1+url, |
|
|
|
|
|
method: "POST", |
|
|
|
|
|
data: query |
|
|
|
|
|
}); |
|
|
|
|
|
}; |
|
|
// const httpGet2 = (query,url) => {
|
|
|
// const httpGet2 = (query,url) => {
|
|
|
// return request4({
|
|
|
// return request4({
|
|
|
// url:url1 +url,
|
|
|
// url:url1 +url,
|
|
@ -98,4 +112,4 @@ const silentRequest = (query,url) => { |
|
|
params: query |
|
|
params: query |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
export {httpGet,RefreshToken,httpPost,setCode,httpGet1,httpPost1,download,httgetaxio,httgetaxio1,downloadPost,httpPostno,httpGetno,silentRequest} |
|
|
|
|
|
|
|
|
export {httpGet,RefreshToken,httpPost,setCode,httpGet1,httpPost1,download,httgetaxio,httgetaxio1,downloadPost,httpPostno,httpGetno,silentRequest, httpPostE} |