统一甲屿云命名体系

This commit is contained in:
2026-06-29 23:26:43 +08:00
parent 48c47fe3ff
commit bc8a7d8d4c
1268 changed files with 3477 additions and 3511 deletions
+29
View File
@@ -0,0 +1,29 @@
const SESSION_KEY = 'jayu_salon_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
}