重构项目文件夹目录

This commit is contained in:
2026-06-15 15:53:55 +08:00
parent 8093e07190
commit 7cbe5b3de5
1098 changed files with 34 additions and 4441 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
}