dfws-ve-taro-request 0.0.5 → 0.0.7

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