chore: update dependencies and remove unused convex package
- Removed "@kevisual/convex" dependency from package.json and pnpm-lock.yaml. - Updated "ioredis" version from "^5.9.3" to "^5.10.0" in package.json and pnpm-lock.yaml. - Updated "@kevisual/context", "@kevisual/query", and "@kevisual/router" versions in wxmsg/package.json. - Updated "@types/node" version in wxmsg/package.json. - Added resolutions for "ioredis" in wxmsg/package.json. - Commented out the automatic reply functionality in wxmsg/src/wx/index.ts and added a placeholder message.
This commit is contained in:
@@ -157,22 +157,23 @@ export class Wx {
|
||||
}
|
||||
const wxMsg = msg as WxMsgText;
|
||||
const question = wxMsg.content;
|
||||
const nocoMsg = {
|
||||
path: 'noco-life',
|
||||
key: "chat",
|
||||
payload: {
|
||||
token: userToken,
|
||||
question,
|
||||
}
|
||||
}
|
||||
const res = await this.query.post(nocoMsg);
|
||||
if (res.code !== 200) {
|
||||
await sendUserText('自动回复失败,请稍后再试:' + res.message);
|
||||
}
|
||||
const content = res.data?.content || ''
|
||||
if (content) {
|
||||
await sendUserText(content);
|
||||
}
|
||||
// const nocoMsg = {
|
||||
// path: 'noco-life',
|
||||
// key: "chat",
|
||||
// payload: {
|
||||
// token: userToken,
|
||||
// question,
|
||||
// }
|
||||
// }
|
||||
// const res = await this.query.post(nocoMsg);
|
||||
// if (res.code !== 200) {
|
||||
// await sendUserText('自动回复失败,请稍后再试:' + res.message);
|
||||
// }
|
||||
// const content = res.data?.content || ''
|
||||
// if (content) {
|
||||
// await sendUserText(content);
|
||||
// }
|
||||
sendUserText('自动回复功能正在开发中,敬请期待!');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user