const USER_KEY = 'user'; export function setUser(user) { wx.setStorage({ key: USER_KEY, data: user }) } export function getUser() { return wx.getStorageSync(USER_KEY) } export function isNeedRealFaceAuth() { const user = getUser(); console.log(user) return user && user.idCard && user.faceAuth }