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:
@@ -23,16 +23,19 @@
|
||||
],
|
||||
"author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
|
||||
"license": "MIT",
|
||||
"packageManager": "pnpm@10.28.2",
|
||||
"packageManager": "pnpm@10.32.1",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@kevisual/context": "^0.0.4",
|
||||
"@kevisual/query": "^0.0.39",
|
||||
"@kevisual/router": "0.0.70",
|
||||
"@types/node": "^25.2.1",
|
||||
"@kevisual/context": "^0.0.8",
|
||||
"@kevisual/query": "^0.0.53",
|
||||
"@kevisual/router": "0.1.4",
|
||||
"@types/node": "^25.5.0",
|
||||
"crypto-js": "^4.2.0",
|
||||
"xml2js": "^0.6.2"
|
||||
},
|
||||
"resolutions": {
|
||||
"ioredis": "^5.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/xml2js": "^0.4.14"
|
||||
|
||||
@@ -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