feat: add summary

This commit is contained in:
2025-06-28 02:46:50 +08:00
parent 204165bf73
commit e2d0720698
14 changed files with 158 additions and 15 deletions

View File

@@ -8,17 +8,27 @@ import util from 'node:util';
// });
const getNoteById = async () => {
const client = xhsServices.getClient();
client.getNoteById('68136dab0000000007034c46', 'LByEmonX8WfJ9ebpAowVbOZX9Xh8T0Qkjil5KRFqDD6LM').then((res) => {
console.log(res);
});
// client.getNoteById('68136dab0000000007034c46', 'LByEmonX8WfJ9ebpAowVbOZX9Xh8T0Qkjil5KRFqDD6LM').then((res) => {
// console.log(res);
// });
const res = await client.getNoteById('68136dab0000000007034c46', 'LB6fmNfsd0keAQNjh3zOejDC2TVQLGY3zlTZjeRazBZdI=');
// console.log(res);
};
const getNote = async () => {
// const id = '68136dab0000000007034c46';
// const x = 'LByEmonX8WfJ9ebpAowVbOZX9Xh8T0Qkjil5KRFqDD6LM=';
const id = '68136dab0000000007034c46';
const x = 'LByEmonX8WfJ9ebpAowVbOZX9Xh8T0Qkjil5KRFqDD6LM=';
const x = 'LB6fmNfsd0keAQNjh3zOejDC2TVQLGY3zlTZjeRazBZdI=';
const client = xhsServices.getClient();
client.getNote(id, x).then((res) => {
const res = await client.getNote(id, x).then((res) => {
console.log(util.inspect(res, { depth: null }));
return res;
});
console.log('type res', typeof res);
if (res.code === 0) {
console.log('desc', res.data.desc);
}
};
program
.command('get-note')