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