中品加油
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.

43 lines
872 B

2 years ago
import request from '@/utils/request'
const service_name = "oil-identity"
const group_name = "weChatAuthorization"
export default {
autoLogin (data,url) {
return request({
url: `/${service_name}/${group_name}/${url}`,
method: 'post',
data:data
})
},
sendCode (code) {
return request({
url: `/${service_name}/${group_name}/sendCode`,
method: 'post',
data:{
code:code,
appId:'wx2f203fde39b883bc'
}
})
},
bindLoginByPhone (data,url) {
return request({
url: `/${service_name}/${group_name}/${url}`,
method: 'post',
data:{
...data,
appId:'wx2f203fde39b883bc'
}
})
},
decryptPhoneNumber (data) {
return request({
url: `/${service_name}/${group_name}/decryptWeChatPhoneData`,
method: 'post',
data:data
})
}
}