dfws-ve-taro-request 0.0.8 → 0.1.0

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
@@ -6826,10 +6826,10 @@
6826
6826
  return data;
6827
6827
  }
6828
6828
  if (statusCode === 401) {
6829
- Taro.clearStorage(); // 清除token
6830
6829
  Taro.removeStorage({ key: 'ticket' });
6831
6830
  Taro.removeStorage({ key: 'user_id' });
6832
6831
  Taro.removeStorage({ key: 'openid' });
6832
+ Taro.removeStorage({ key: 'mobile' });
6833
6833
  data.status = 0;
6834
6834
  data.errMsg = "";
6835
6835
  return data;
@@ -6862,6 +6862,7 @@
6862
6862
  'dfws-params': header.params || '',
6863
6863
  'content-type': header["content-type"] || 'application/json',
6864
6864
  'resume-language': header['resume-language'] || 'zh-CN',
6865
+ 'common-params': header['common-params'] || '',
6865
6866
  }
6866
6867
  }).then(function (res) {
6867
6868
  var response = isEncode ? __assign(__assign({}, res), { data: decryptByDES(unescape(res.data), debug) }) : res;