bug修复

This commit is contained in:
2024-06-01 20:06:30 +08:00
parent 4344adeb0b
commit 3945b36b0a
14 changed files with 124 additions and 35 deletions

View File

@@ -1,5 +1,6 @@
const TokenKey = 'accessToken';
const SessionKey = 'sessionKey';
const OpenIdKey = 'openId';
const CompanyIdKey = 'companyId';
const ReferrerUserIdKey = 'referrerUserId';
const RegisterStoreIdKey = 'storeId';
@@ -22,10 +23,18 @@ function getSessionKey() {
return uni.getStorageSync(SessionKey);
}
function setSessionKey(sessionKey: string){
function setSessionKey(sessionKey: string) {
uni.setStorageSync(SessionKey, sessionKey);
}
function getOpenId() {
return uni.getStorageSync(OpenIdKey);
}
function setOpenId(openId: string) {
uni.setStorageSync(OpenIdKey, openId);
}
function getCompanyId() {
return uni.getStorageSync(CompanyIdKey);
}
@@ -63,6 +72,8 @@ export {
setToken,
getSessionKey,
setSessionKey,
getOpenId,
setOpenId,
getCompanyId,
setCompanyId,
getReferrerUserId,