You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
388 B
10 lines
388 B
|
7 days ago
|
const fs = require('fs');
|
||
|
|
const p = 'C:/Users/Administrator/.lanhu-mcp/cookie.json';
|
||
|
|
try {
|
||
|
|
const d = JSON.parse(fs.readFileSync(p, 'utf8'));
|
||
|
|
console.log('cookie length:', (d.cookie || '').length, '| updatedAt:', d.updatedAt);
|
||
|
|
console.log('names:', (d.cookie || '').split(';').map(s => s.trim().split('=')[0]).join(','));
|
||
|
|
} catch (e) {
|
||
|
|
console.log('NO_COOKIE_FILE:', e.message);
|
||
|
|
}
|