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.esm.js +9 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +9 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
@@ -6813,6 +6813,14 @@
|
|
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
|
+
Taro.showToast({
|
6818
|
+
title: data.msg,
|
6819
|
+
icon: 'none',
|
6820
|
+
});
|
6821
|
+
data.status = 0;
|
6822
|
+
return data;
|
6823
|
+
}
|
6816
6824
|
data.status = 1;
|
6817
6825
|
data.errMsg = "";
|
6818
6826
|
return data;
|
@@ -6821,6 +6829,7 @@
|
|
6821
6829
|
Taro.clearStorage(); // 清除token
|
6822
6830
|
Taro.removeStorage({ key: 'ticket' });
|
6823
6831
|
Taro.removeStorage({ key: 'user_id' });
|
6832
|
+
Taro.removeStorage({ key: 'openid' });
|
6824
6833
|
data.status = 0;
|
6825
6834
|
data.errMsg = "";
|
6826
6835
|
return data;
|