dfws-ve-taro-request 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -6809,8 +6809,9 @@ var checkStatus = function (response, options, Taro) {
|
|
6809
6809
|
if (statusCode >= 200 && statusCode < 300 || statusCode == 406) {
|
6810
6810
|
if (data.code == 400 || statusCode == 406) {
|
6811
6811
|
Taro.showToast({
|
6812
|
-
title: data.msg,
|
6812
|
+
title: data.msg || '请求失败',
|
6813
6813
|
icon: 'none',
|
6814
|
+
duration: 2000
|
6814
6815
|
});
|
6815
6816
|
data.status = 0;
|
6816
6817
|
return data;
|
@@ -6849,7 +6850,7 @@ var request = (function (url, data, method, header, Taro, debug) {
|
|
6849
6850
|
}
|
6850
6851
|
return Taro.request({
|
6851
6852
|
url: url,
|
6852
|
-
data: isEncode ? encryptByDES(data, debug) : data,
|
6853
|
+
data: isMethod ? {} : isEncode ? encryptByDES(data, debug) : data,
|
6853
6854
|
method: method,
|
6854
6855
|
timeout: 15000,
|
6855
6856
|
header: {
|