Skip to content

Commit

Permalink
fix支付宝小程序支持 #175 #176 #177 #189
Browse files Browse the repository at this point in the history
  • Loading branch information
wendux committed Jan 25, 2019
1 parent 08360bf commit 768c1db
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 28 deletions.
17 changes: 4 additions & 13 deletions dist/npm/ap.js
Expand Up @@ -861,11 +861,10 @@
var con = {
method: request.method,
url: request.url,
dataType: request.dataType || undefined,
dataType: 'text',
header: request.headers,
data: request.body || {},
responseType: request.responseType || 'text',
timeout: request.timeout || 3000,
timeout: request.timeout || 20000,
success: function success(res) {
responseCallback({
statusCode: res.status,
Expand All @@ -878,19 +877,11 @@
statusCode: res.status || 0,
responseText: res.data,
statusHeaders: res.headers,
errMsg: statusList[res.status]
});
},
complete: function complete(res) {
responseCallback({
statusCode: res.status,
responseText: res.data,
statusHeaders: res.headers,
errMsg: statusList[res.status]
errMsg: statusList[res.status] || ""
});
}
};
my.request(con);
my.httpRequest(con);
};

/***/
Expand Down

0 comments on commit 768c1db

Please sign in to comment.