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