MCPcopy Create free account
hub / github.com/CoderOpen/waimai / setStorageSync

Function setStorageSync

front/common/authorize.js:18–26  ·  view source on GitHub ↗
(key,value)

Source from the content-addressed store, hash-verified

16
17// 同步存储storge
18const setStorageSync = (key,value)=>{
19 try {
20 uni.setStorageSync(key, value);
21 return true;
22 } catch (e) {
23 console.log('存储storge失败')
24 }
25 return false;
26}
27
28// 检测sessionkey是否过期 1未过期 0已过期
29const checkSessionKey=()=>{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected