(cache)
| 39 | } |
| 40 | |
| 41 | function writeCache(cache) { |
| 42 | try { |
| 43 | fs.writeFileSync(TOKEN_CACHE_FILE, JSON.stringify(cache, null, 2), "utf8"); |
| 44 | } catch (e) { |
| 45 | $.log(`token缓存写入失败: ${e.message || e}`); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | function md5(text) { |
| 50 | return crypto.createHash("md5").update(String(text)).digest("hex"); |
no test coverage detected