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