()
| 31 | let ckName = "aiguoyue"; |
| 32 | |
| 33 | function readTokenCache() { |
| 34 | try { |
| 35 | if (!fs.existsSync(TOKEN_CACHE_FILE)) return {}; |
| 36 | return JSON.parse(fs.readFileSync(TOKEN_CACHE_FILE, "utf8")) || {}; |
| 37 | } catch (e) { |
| 38 | return {}; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | function writeTokenCache(cache) { |
| 43 | try { |
no outgoing calls
no test coverage detected