dfws-ve-taro-request 0.0.6 → 0.0.8
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 +5 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +5 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -6808,12 +6808,14 @@ var onErrorMsgRrport = function (response, options, Taro) {
|
|
6808
6808
|
};
|
6809
6809
|
var checkStatus = function (response, options, Taro) {
|
6810
6810
|
var statusCode = response.statusCode, data = response.data;
|
6811
|
-
if (statusCode >= 200 && statusCode < 300) {
|
6812
|
-
if (data.code == 400) {
|
6813
|
-
|
6811
|
+
if (statusCode >= 200 && statusCode < 300 || statusCode == 406) {
|
6812
|
+
if (data.code == 400 || statusCode == 406) {
|
6813
|
+
Taro.showToast({
|
6814
6814
|
title: data.msg,
|
6815
6815
|
icon: 'none',
|
6816
6816
|
});
|
6817
|
+
data.status = 0;
|
6818
|
+
return data;
|
6817
6819
|
}
|
6818
6820
|
data.status = 1;
|
6819
6821
|
data.errMsg = "";
|