opendi
This commit is contained in:
@@ -7,7 +7,8 @@ let request = function (obj){
|
||||
header,
|
||||
dataType,
|
||||
responseType,
|
||||
complete
|
||||
complete,
|
||||
name
|
||||
} = obj
|
||||
url="http://daigou.sdbairui.com/index.php/WXAPI/" + url
|
||||
if(method == "POST" || method == "post"){
|
||||
@@ -19,7 +20,7 @@ let request = function (obj){
|
||||
if(data == undefined){
|
||||
data = {}
|
||||
}
|
||||
data.openid = wx.getStorageSync("openid")
|
||||
data[name || 'openid'] = wx.getStorageSync("openid")
|
||||
return new Promise((res,rej)=>{
|
||||
wx.request({
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user