注册调整
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const TokenKey = 'accessToken';
|
||||
const SessionKey = 'sessionKey';
|
||||
const CompanyIdKey = 'companyId';
|
||||
const ReferrerUserIdKey = 'referrerUserId';
|
||||
const RegisterStoreIdKey = 'storeId';
|
||||
@@ -17,6 +18,14 @@ function setToken(token: string) {
|
||||
uni.setStorageSync(TokenKey, token);
|
||||
}
|
||||
|
||||
function getSessionKey() {
|
||||
return uni.getStorageSync(SessionKey);
|
||||
}
|
||||
|
||||
function setSessionKey(sessionKey: string){
|
||||
uni.setStorageSync(SessionKey, sessionKey);
|
||||
}
|
||||
|
||||
function getCompanyId() {
|
||||
return uni.getStorageSync(CompanyIdKey);
|
||||
}
|
||||
@@ -44,6 +53,7 @@ function getRegisterStoreId() {
|
||||
function clearToken() {
|
||||
uni.removeStorageSync(TokenKey);
|
||||
uni.removeStorageSync(CompanyIdKey);
|
||||
uni.removeStorageSync(SessionKey);
|
||||
}
|
||||
|
||||
export {
|
||||
@@ -51,6 +61,8 @@ export {
|
||||
isLogin,
|
||||
getToken,
|
||||
setToken,
|
||||
getSessionKey,
|
||||
setSessionKey,
|
||||
getCompanyId,
|
||||
setCompanyId,
|
||||
getReferrerUserId,
|
||||
|
Reference in New Issue
Block a user