This commit is contained in:
2019-12-19 15:27:30 +08:00
parent fc42af178c
commit 79afb38a63
6 changed files with 25 additions and 8 deletions

View File

@@ -8,9 +8,15 @@ let request = function (obj){
dataType,
responseType,
complete,
name
name,
urldata
} = obj
url="http://daigou.sdbairui.com/index.php/WXAPI/" + url
let text = ""
for(let i in urldata){
text += `/${i}/${urldata[i]}`
}
url+=text
if(method == "POST" || method == "post"){
if(header == undefined){
header ={}