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.umd.js
CHANGED
@@ -6815,8 +6815,9 @@
|
|
6815
6815
|
if (statusCode >= 200 && statusCode < 300 || statusCode == 406) {
|
6816
6816
|
if (data.code == 400 || statusCode == 406) {
|
6817
6817
|
Taro.showToast({
|
6818
|
-
title: data.msg,
|
6818
|
+
title: data.msg || '请求失败',
|
6819
6819
|
icon: 'none',
|
6820
|
+
duration: 2000
|
6820
6821
|
});
|
6821
6822
|
data.status = 0;
|
6822
6823
|
return data;
|
@@ -6855,7 +6856,7 @@
|
|
6855
6856
|
}
|
6856
6857
|
return Taro.request({
|
6857
6858
|
url: url,
|
6858
|
-
data: isEncode ? encryptByDES(data, debug) : data,
|
6859
|
+
data: isMethod ? {} : isEncode ? encryptByDES(data, debug) : data,
|
6859
6860
|
method: method,
|
6860
6861
|
timeout: 15000,
|
6861
6862
|
header: {
|