You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
337 B
17 lines
337 B
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 |
|
} |