暂存code

This commit is contained in:
hejiangming
2025-05-07 09:54:33 +08:00
parent 78270eeda0
commit 007b002b81
403 changed files with 14507 additions and 6320 deletions
+15
View File
@@ -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