暂存code
This commit is contained in:
+15
@@ -35,10 +35,25 @@ function getStorageFun(key, sync = true) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function clear(sync = true) {
|
||||
try {
|
||||
if (sync) {
|
||||
return common_vendor.index.clearStorageSync();
|
||||
} else {
|
||||
common_vendor.index.clearStorage();
|
||||
}
|
||||
common_vendor.index.removeStorage({
|
||||
key: "isForcedLogin"
|
||||
});
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
exports.TOKEN_NAME = TOKEN_NAME;
|
||||
exports.USER_DATA = USER_DATA;
|
||||
exports.USER_KEY = USER_KEY;
|
||||
exports.USER_LOGIN_TIME = USER_LOGIN_TIME;
|
||||
exports.clear = clear;
|
||||
exports.getStorageFun = getStorageFun;
|
||||
exports.setStorageFun = setStorageFun;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/utils/auth.js.map
|
||||
|
||||
Reference in New Issue
Block a user