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.
 
 
 
 

24 lines
716 B

import { httpRequest } from '@/request/index.js'
let url = {
// 获取token
getToken:'oauth/2.0/token',
idCard:'rest/2.0/ocr/v1/accurate_basic',
// idCard:'rest/2.0/ocr/v1/general_basic',
}
module.exports = {
getTokenR(params){
return httpRequest({
url:`${url.getToken}?grant_type=client_credentials&client_id=W4jgXICF2kyaivdsYzKoDOxD&client_secret=h6uwa0q0hkjn4im4Vb9QXaC7xrBbvw6B`
})
},
getMessage(params){
return httpRequest({
url:`${url.idCard}?access_token=${params.access_token}`,
data:params.data,
header:{
"Content-Type":"application/x-www-form-urlencoded"
}
})
}
}