mall_client/zyhs3_uniapp/components/verify/utils/request.js

20 lines
391 B
JavaScript
Raw Normal View History

2026-03-13 07:50:35 +00:00
let baseUrl = "https://mirror.anji-plus.com/captcha-api"
// let baseUrl = "http://10.108.12.13:8080"
export const myRequest = (option={})=>{
return new Promise((reslove,reject)=>{
uni.request({
url: baseUrl + option.url,
data :option.data,
method:option.method || "GET",
success: (result) => {
reslove(result)
},
fail:(error)=>{
reject(error)
}
})
})
}