(cache)
| 34 | } |
| 35 | |
| 36 | function writeTokenCache(cache) { |
| 37 | try { |
| 38 | fs.writeFileSync(TOKEN_CACHE_FILE, JSON.stringify(cache, null, 2), "utf8"); |
| 39 | } catch (e) { |
| 40 | $.log(`写入token缓存失败: ${e.message || e}`); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | function maskToken(token = "") { |
| 45 | const value = String(token || ""); |
no test coverage detected