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.js CHANGED
@@ -6822,10 +6822,10 @@ var checkStatus = function (response, options, Taro) {
6822
6822
  return data;
6823
6823
  }
6824
6824
  if (statusCode === 401) {
6825
- Taro.clearStorage(); // 清除token
6826
6825
  Taro.removeStorage({ key: 'ticket' });
6827
6826
  Taro.removeStorage({ key: 'user_id' });
6828
6827
  Taro.removeStorage({ key: 'openid' });
6828
+ Taro.removeStorage({ key: 'mobile' });
6829
6829
  data.status = 0;
6830
6830
  data.errMsg = "";
6831
6831
  return data;
@@ -6858,6 +6858,7 @@ var request = (function (url, data, method, header, Taro, debug) {
6858
6858
  'dfws-params': header.params || '',
6859
6859
  'content-type': header["content-type"] || 'application/json',
6860
6860
  'resume-language': header['resume-language'] || 'zh-CN',
6861
+ 'common-params': header['common-params'] || '',
6861
6862
  }
6862
6863
  }).then(function (res) {
6863
6864
  var response = isEncode ? __assign(__assign({}, res), { data: decryptByDES(unescape(res.data), debug) }) : res;