(cache)
| 56 | } |
| 57 | |
| 58 | function writeCache(cache) { |
| 59 | try { |
| 60 | fs.writeFileSync(TOKEN_CACHE_FILE, JSON.stringify(cache, null, 2), "utf8"); |
| 61 | } catch (e) { |
| 62 | $.log(`token缓存写入失败: ${e.message || e}`); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | function md5(text) { |
| 67 | return crypto.createHash("md5").update(String(text)).digest("hex"); |
no test coverage detected