功能:重建指尖管理师规划系统

This commit is contained in:
xiaowang
2026-06-04 16:39:06 +08:00
parent 73483e7b0c
commit 677890f518
413 changed files with 9602 additions and 795 deletions
+29
View File
@@ -0,0 +1,29 @@
const SESSION_KEY = 'fingertip_manager_session'
function getSession() {
try {
return wx.getStorageSync(SESSION_KEY) || {}
} catch (error) {
return {}
}
}
function setSession(session) {
wx.setStorageSync(SESSION_KEY, session || {})
}
function clearSession() {
wx.removeStorageSync(SESSION_KEY)
}
function getAccessToken() {
const session = getSession()
return session.accessToken || session.token || ''
}
module.exports = {
getSession,
setSession,
clearSession,
getAccessToken
}