dfws-ve-taro-request 0.0.5 → 0.0.6

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
@@ -6813,6 +6813,12 @@
6813
6813
  var checkStatus = function (response, options, Taro) {
6814
6814
  var statusCode = response.statusCode, data = response.data;
6815
6815
  if (statusCode >= 200 && statusCode < 300) {
6816
+ if (data.code == 400) {
6817
+ return Taro.showToast({
6818
+ title: data.msg,
6819
+ icon: 'none',
6820
+ });
6821
+ }
6816
6822
  data.status = 1;
6817
6823
  data.errMsg = "";
6818
6824
  return data;
@@ -6821,6 +6827,7 @@
6821
6827
  Taro.clearStorage(); // 清除token
6822
6828
  Taro.removeStorage({ key: 'ticket' });
6823
6829
  Taro.removeStorage({ key: 'user_id' });
6830
+ Taro.removeStorage({ key: 'openid' });
6824
6831
  data.status = 0;
6825
6832
  data.errMsg = "";
6826
6833
  return data;