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.umd.js CHANGED
@@ -6812,12 +6812,14 @@
6812
6812
  };
6813
6813
  var checkStatus = function (response, options, Taro) {
6814
6814
  var statusCode = response.statusCode, data = response.data;
6815
- if (statusCode >= 200 && statusCode < 300) {
6816
- if (data.code == 400) {
6817
- return Taro.showToast({
6815
+ if (statusCode >= 200 && statusCode < 300 || statusCode == 406) {
6816
+ if (data.code == 400 || statusCode == 406) {
6817
+ Taro.showToast({
6818
6818
  title: data.msg,
6819
6819
  icon: 'none',
6820
6820
  });
6821
+ data.status = 0;
6822
+ return data;
6821
6823
  }
6822
6824
  data.status = 1;
6823
6825
  data.errMsg = "";