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:
xiongxiao
2026-03-18 03:24:33 +08:00
committed by cnb
parent 2332f05cef
commit 9be5eb00f5
5 changed files with 62 additions and 1622 deletions

1420
bun.lock

File diff suppressed because it is too large Load Diff

View File

@@ -63,7 +63,6 @@
"@kevisual/api": "^0.0.64",
"@kevisual/cnb": "^0.0.52",
"@kevisual/context": "^0.0.8",
"@kevisual/convex": "^0.0.6",
"@kevisual/local-app-manager": "0.1.32",
"@kevisual/logger": "^0.0.4",
"@kevisual/oss": "0.0.20",
@@ -100,7 +99,7 @@
"resolutions": {
"inflight": "latest",
"picomatch": "^4.0.2",
"ioredis": "^5.9.3"
"ioredis": "^5.10.0"
},
"packageManager": "pnpm@10.32.1",
"workspaces": [

215
pnpm-lock.yaml generated
View File

@@ -7,7 +7,7 @@ settings:
overrides:
inflight: latest
picomatch: ^4.0.2
ioredis: ^5.9.3
ioredis: ^5.10.0
importers:
@@ -70,13 +70,10 @@ importers:
version: 0.0.64(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
'@kevisual/cnb':
specifier: ^0.0.52
version: 0.0.52(dotenv@17.3.1)(ioredis@5.9.3)
version: 0.0.52(dotenv@17.3.1)(ioredis@5.10.0)
'@kevisual/context':
specifier: ^0.0.8
version: 0.0.8
'@kevisual/convex':
specifier: ^0.0.6
version: 0.0.6(@ai-sdk/provider-utils@4.0.19(zod@4.3.6))(ai@6.0.116(zod@4.3.6))(convex-helpers@0.1.114(@standard-schema/spec@1.1.0)(convex@1.33.1(react@19.2.4))(react@19.2.4)(zod@4.3.6))(react@19.2.4)(zod@4.3.6)
'@kevisual/local-app-manager':
specifier: 0.1.32
version: 0.1.32
@@ -147,8 +144,8 @@ importers:
specifier: ^1.45.1
version: 1.45.1
ioredis:
specifier: ^5.9.3
version: 5.9.3
specifier: ^5.10.0
version: 5.10.0
jsonwebtoken:
specifier: ^9.0.3
version: 9.0.3
@@ -177,17 +174,17 @@ importers:
wxmsg:
dependencies:
'@kevisual/context':
specifier: ^0.0.4
version: 0.0.4
specifier: ^0.0.8
version: 0.0.8
'@kevisual/query':
specifier: ^0.0.39
version: 0.0.39
specifier: ^0.0.53
version: 0.0.53
'@kevisual/router':
specifier: 0.0.70
version: 0.0.70
specifier: 0.1.4
version: 0.1.4
'@types/node':
specifier: ^25.2.1
version: 25.2.1
specifier: ^25.5.0
version: 25.5.0
crypto-js:
specifier: ^4.2.0
version: 4.2.0
@@ -397,18 +394,6 @@ packages:
resolution: {integrity: sha512-oLvsaPMTBejkkmHhjf09xTgk71mOqyr/409NKhRIL08If7AhVfUsJhVsx386uJaqNd42v9kWamQ9lFbkoC2dYw==}
engines: {node: '>=18.0.0'}
'@convex-dev/agent@0.3.2':
resolution: {integrity: sha512-TMFReXejAIUE22OOn8PYvoOseAqwVOPm4WZU554GFk0lJ9kcNCGRJP/T1NTZfSBXrSaSUjETMFv2vEfXbG+4Qg==}
peerDependencies:
'@ai-sdk/provider-utils': ^3.0.7
ai: ^5.0.29
convex: ^1.24.8
convex-helpers: ^0.1.103
react: ^18.3.1 || ^19.0.0
peerDependenciesMeta:
react:
optional: true
'@drizzle-team/brocli@0.10.2':
resolution: {integrity: sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==}
@@ -864,8 +849,8 @@ packages:
cpu: [x64]
os: [win32]
'@ioredis/commands@1.5.0':
resolution: {integrity: sha512-eUgLqrMf8nJkZxT24JvVRrQya1vZkQh8BBeYNwGDqa5I0VUi8ACx7uFvAaLxintokpTenkK6DASvo/bvNbBGow==}
'@ioredis/commands@1.5.1':
resolution: {integrity: sha512-JH8ZL/ywcJyR9MmJ5BNqZllXNZQqQbnVZOqpPQqE1vHiFgAw4NHbvE0FOduNU8IX9babitBT46571OnPTT0Zcw==}
'@isaacs/cliui@8.0.2':
resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
@@ -884,15 +869,9 @@ packages:
resolution: {integrity: sha512-1SoL4Er7r75NlejeoViuf0+dqXRmmd1PCI3lHCDsEoEj0WKpwxEaSUE0ubdSbHz2zDRKwiqkbY8aTS2Pj4cZ7Q==}
hasBin: true
'@kevisual/context@0.0.4':
resolution: {integrity: sha512-HJeLeZQLU+7tCluSfOyvkgKLs0HjCZrdJlZgEgKRSa8XTwZfMAUt6J7qZTbrZAHBlPtX68EPu/PI8JMCeu3WAQ==}
'@kevisual/context@0.0.8':
resolution: {integrity: sha512-DTJpyHI34NE76B7g6f+QlIqiCCyqI2qkBMQE736dzeRDGxOjnbe2iQY9W+Rt2PE6kmymM3qyOmSfNovyWyWrkA==}
'@kevisual/convex@0.0.6':
resolution: {integrity: sha512-cAODH9TsuLPiyKbres7dtp9sYMIAeZluXUIUd1SkjKTYjr8QZPpVe+uUmUGUMuGBE25jGBUIr0agsqMRyQPCeA==}
'@kevisual/js-filter@0.0.6':
resolution: {integrity: sha512-FcbOsmS1inhwrfgXMM/XLFTGTHUxBCss32JEMYdEFWQDYCar5rN8cxD1W8FuKDTVRlpA+zBpQ/BE6XT4UaeljA==}
@@ -911,18 +890,15 @@ packages:
'@kevisual/permission@0.0.4':
resolution: {integrity: sha512-zwBYPnT/z21W4q2wkklJrxvoYBYWG/+a3iXFDKqXQAnDOcxm/SU1f1N6FQb9KxGKl36/fclVlhxlxqszvKCenQ==}
'@kevisual/query@0.0.39':
resolution: {integrity: sha512-3UEPBIvtdykNkrby3hvrgrHdgd17Uq+Pnr4zs+JBzATkU2eKaOqtTUJqdyIEwuySCwzGTxrnlUzWP4tziDQDLQ==}
'@kevisual/query@0.0.53':
resolution: {integrity: sha512-PAhpCLBr0emz0lGNlTVHMbJiC5wrtGLbInPddRzgKE35fiyNt+SWSsUWABiD0DeNrLN/OxWyAFobt880Z/e5MQ==}
'@kevisual/router@0.0.70':
resolution: {integrity: sha512-vXlIj9jRufhcIfeuPWemjSI+dxdzSmIBq5eRxQzqEfAJ7k+mBPhoI4KxH8vHnwyL30bqm8EdODL/p6Wg8uBw3g==}
'@kevisual/router@0.1.3':
resolution: {integrity: sha512-vFQ3ZqyKjKAyaizNaAUG0GVhUc2+trpAM9SwiFT3bL09U8NPlViV21wUNU91qDZyQYr/UMnIWkwu0ywaaimATQ==}
'@kevisual/router@0.1.4':
resolution: {integrity: sha512-/Gz3N4KAyCRQmy+FgtK8OEhainYxBnck97LSKeazHLzQ5lOoQs46XCGDYR/AjrCuDTuUrmfD/l1u9pFe2rjN8Q==}
'@kevisual/types@0.0.12':
resolution: {integrity: sha512-zJXH2dosir3jVrQ6QG4i0+iLQeT9gJ3H+cKXs8ReWboxBSYzUZO78XssVeVrFPsJ33iaAqo4q3DWbSS1dWGn7Q==}
@@ -1247,9 +1223,6 @@ packages:
'@types/ms@0.7.34':
resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==}
'@types/node@25.2.1':
resolution: {integrity: sha512-CPrnr8voK8vC6eEtyRzvMpgp3VyVRhgclonE7qYi6P9sXwYb59ucfrnmFBTaP0yUi8Gk4yZg/LlTJULGxvTNsg==}
'@types/node@25.5.0':
resolution: {integrity: sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==}
@@ -1271,9 +1244,6 @@ packages:
'@types/xml2js@0.4.14':
resolution: {integrity: sha512-4YnrRemBShWRO2QjvUin8ESA41rH+9nQGLUGZV/1IDhi3SL9OhdpNC/MrulTWuptXKwhx/aDxE7toV0f/ypIXQ==}
'@ungap/structured-clone@1.3.0':
resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}
'@vercel/oidc@3.1.0':
resolution: {integrity: sha512-Fw28YZpRnA3cAHHDlkt7xQHiJ0fcL+NRcIqsocZQUSmbzeIKRpwttJjik5ZGanXP+vlA4SbTg+AbA3bP363l+w==}
engines: {node: '>= 20'}
@@ -1459,44 +1429,6 @@ packages:
resolution: {integrity: sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==}
engines: {node: '>= 14'}
convex-helpers@0.1.114:
resolution: {integrity: sha512-elEdh+gG6BDv2dWIWVvBeJPbHnDQS5+WexUuwlGVJXz1EbMkXz/UIQwFIfLMZIXUwW6ot4JYf/1JJKNStrE6lg==}
hasBin: true
peerDependencies:
'@standard-schema/spec': ^1.0.0
convex: ^1.32.0
hono: ^4.0.5
react: ^17.0.2 || ^18.0.0 || ^19.0.0
typescript: ^5.5
zod: ^3.25.0 || ^4.0.0
peerDependenciesMeta:
'@standard-schema/spec':
optional: true
hono:
optional: true
react:
optional: true
typescript:
optional: true
zod:
optional: true
convex@1.32.0:
resolution: {integrity: sha512-5FlajdLpW75pdLS+/CgGH5H6yeRuA+ru50AKJEYbJpmyILUS+7fdTvsdTaQ7ZFXMv0gE8mX4S+S3AtJ94k0mfw==}
engines: {node: '>=18.0.0', npm: '>=7.0.0'}
hasBin: true
peerDependencies:
'@auth0/auth0-react': ^2.0.1
'@clerk/clerk-react': ^4.12.8 || ^5.0.0
react: ^18.0.0 || ^19.0.0-0 || ^19.0.0
peerDependenciesMeta:
'@auth0/auth0-react':
optional: true
'@clerk/clerk-react':
optional: true
react:
optional: true
convex@1.33.1:
resolution: {integrity: sha512-mRhR1XqZPLhgJsUepecM/kOgQVRCWKJtHHtyEX/XYY4zmzfItG0D1GNh5fjNEkuO5+72X4PCkzbEFA6327rxog==}
engines: {node: '>=18.0.0', npm: '>=7.0.0'}
@@ -1752,9 +1684,6 @@ packages:
error-causes@3.0.2:
resolution: {integrity: sha512-i0B8zq1dHL6mM85FGoxaJnVtx6LD5nL2v0hlpGdntg5FOSyzQ46c9lmz5qx0xRS2+PWHGOHcYxGIBC5Le2dRMw==}
es-toolkit@1.44.0:
resolution: {integrity: sha512-6penXeZalaV88MM3cGkFZZfOoLGWshWWfdy0tWw/RlVVyhvMaWSBTOvXNeiW3e5FwdS5ePW0LGEu17zT139ktg==}
es-toolkit@1.45.1:
resolution: {integrity: sha512-/jhoOj/Fx+A+IIyDNOvO3TItGmlMKhtX8ISAHKE90c4b/k1tqaqEZ+uUqfpU8DMnW5cgNJv606zS55jGvza0Xw==}
@@ -1957,8 +1886,8 @@ packages:
ini@1.3.8:
resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==}
ioredis@5.9.3:
resolution: {integrity: sha512-VI5tMCdeoxZWU5vjHWsiE/Su76JGhBvWF1MJnV9ZtGltHk9BmD48oDq8Tj8haZ85aceXZMxLNDQZRVo5QKNgXA==}
ioredis@5.10.0:
resolution: {integrity: sha512-HVBe9OFuqs+Z6n64q09PQvP1/R4Bm+30PAyyD4wIEqssh3v9L21QjCVk4kRLucMBcDokJTcLjsGeVRlq/nH6DA==}
engines: {node: '>=12.22.0'}
ip-address@9.0.5:
@@ -2005,9 +1934,6 @@ packages:
jackspeak@3.4.3:
resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==}
jose@6.2.1:
resolution: {integrity: sha512-jUaKr1yrbfaImV7R2TN/b3IcZzsw38/chqMpo2XJ7i2F8AfM/lA4G1goC3JVEwg0H7UldTmSt3P68nt31W7/mw==}
js-git@0.7.8:
resolution: {integrity: sha512-+E5ZH/HeRnoc/LW0AmAyhU+mNcWBzAKE+30+IDMLSLbbK+Tdt02AdkOKq9u15rlJsDEGFqtgckc8ZM59LhhiUA==}
@@ -2623,9 +2549,6 @@ packages:
uncrypto@0.1.3:
resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==}
undici-types@7.16.0:
resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}
undici-types@7.18.2:
resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==}
@@ -2653,7 +2576,7 @@ packages:
aws4fetch: ^1.0.20
db0: '>=0.2.1'
idb-keyval: ^6.2.1
ioredis: ^5.9.3
ioredis: ^5.10.0
uploadthing: ^7.4.4
peerDependenciesMeta:
'@azure/app-configuration':
@@ -3268,16 +3191,6 @@ snapshots:
'@aws/lambda-invoke-store@0.2.3': {}
'@convex-dev/agent@0.3.2(@ai-sdk/provider-utils@4.0.19(zod@4.3.6))(ai@6.0.116(zod@4.3.6))(convex-helpers@0.1.114(@standard-schema/spec@1.1.0)(convex@1.33.1(react@19.2.4))(react@19.2.4)(zod@4.3.6))(convex@1.32.0(react@19.2.4))(react@19.2.4)':
dependencies:
'@ai-sdk/provider-utils': 4.0.19(zod@4.3.6)
ai: 6.0.116(zod@4.3.6)
convex: 1.32.0(react@19.2.4)
convex-helpers: 0.1.114(@standard-schema/spec@1.1.0)(convex@1.33.1(react@19.2.4))(react@19.2.4)(zod@4.3.6)
optionalDependencies:
'@ungap/structured-clone': 1.3.0
react: 19.2.4
'@drizzle-team/brocli@0.10.2': {}
'@esbuild-kit/core-utils@3.3.2':
@@ -3512,7 +3425,7 @@ snapshots:
'@esbuild/win32-x64@0.27.0':
optional: true
'@ioredis/commands@1.5.0': {}
'@ioredis/commands@1.5.1': {}
'@isaacs/cliui@8.0.2':
dependencies:
@@ -3558,15 +3471,15 @@ snapshots:
'@kevisual/auth@2.0.3': {}
'@kevisual/cnb@0.0.52(dotenv@17.3.1)(ioredis@5.9.3)':
'@kevisual/cnb@0.0.52(dotenv@17.3.1)(ioredis@5.10.0)':
dependencies:
'@kevisual/query': 0.0.53
'@kevisual/router': 0.1.3
'@kevisual/router': 0.1.4
'@kevisual/use-config': 1.0.30(dotenv@17.3.1)
'@opencode-ai/sdk': 1.2.27
es-toolkit: 1.45.1
nanoid: 5.1.7
unstorage: 1.17.4(ioredis@5.9.3)
unstorage: 1.17.4(ioredis@5.10.0)
ws: '@kevisual/ws@8.19.0'
transitivePeerDependencies:
- '@azure/app-configuration'
@@ -3590,30 +3503,8 @@ snapshots:
- ioredis
- uploadthing
'@kevisual/context@0.0.4': {}
'@kevisual/context@0.0.8': {}
'@kevisual/convex@0.0.6(@ai-sdk/provider-utils@4.0.19(zod@4.3.6))(ai@6.0.116(zod@4.3.6))(convex-helpers@0.1.114(@standard-schema/spec@1.1.0)(convex@1.33.1(react@19.2.4))(react@19.2.4)(zod@4.3.6))(react@19.2.4)(zod@4.3.6)':
dependencies:
'@ai-sdk/openai': 3.0.41(zod@4.3.6)
'@convex-dev/agent': 0.3.2(@ai-sdk/provider-utils@4.0.19(zod@4.3.6))(ai@6.0.116(zod@4.3.6))(convex-helpers@0.1.114(@standard-schema/spec@1.1.0)(convex@1.33.1(react@19.2.4))(react@19.2.4)(zod@4.3.6))(convex@1.32.0(react@19.2.4))(react@19.2.4)
'@kevisual/auth': 2.0.3
'@kevisual/context': 0.0.8
convex: 1.32.0(react@19.2.4)
jose: 6.2.1
nanoid: 5.1.7
transitivePeerDependencies:
- '@ai-sdk/provider-utils'
- '@auth0/auth0-react'
- '@clerk/clerk-react'
- ai
- bufferutil
- convex-helpers
- react
- utf-8-validate
- zod
'@kevisual/js-filter@0.0.6': {}
'@kevisual/load@0.0.6':
@@ -3634,22 +3525,20 @@ snapshots:
'@kevisual/permission@0.0.4': {}
'@kevisual/query@0.0.39':
dependencies:
tslib: 2.8.1
'@kevisual/query@0.0.53': {}
'@kevisual/router@0.0.70':
dependencies:
es-toolkit: 1.44.0
'@kevisual/router@0.1.3':
dependencies:
crypto-js: 4.2.0
es-toolkit: 1.45.1
zod: 4.3.6
'@kevisual/router@0.1.4':
dependencies:
crypto-js: 4.2.0
es-toolkit: 1.45.1
zod: 4.3.6
'@kevisual/types@0.0.12': {}
'@kevisual/use-config@1.0.30(dotenv@17.3.1)':
@@ -4110,10 +3999,6 @@ snapshots:
'@types/ms@0.7.34': {}
'@types/node@25.2.1':
dependencies:
undici-types: 7.16.0
'@types/node@25.5.0':
dependencies:
undici-types: 7.18.2
@@ -4140,10 +4025,7 @@ snapshots:
'@types/xml2js@0.4.14':
dependencies:
'@types/node': 25.2.1
'@ungap/structured-clone@1.3.0':
optional: true
'@types/node': 25.5.0
'@vercel/oidc@3.1.0': {}
@@ -4287,7 +4169,7 @@ snapshots:
bullmq@5.71.0:
dependencies:
cron-parser: 4.9.0
ioredis: 5.9.3
ioredis: 5.10.0
msgpackr: 1.11.5
node-abort-controller: 3.1.1
semver: 7.7.4
@@ -4352,25 +4234,6 @@ snapshots:
normalize-path: 3.0.0
readable-stream: 4.5.2
convex-helpers@0.1.114(@standard-schema/spec@1.1.0)(convex@1.33.1(react@19.2.4))(react@19.2.4)(zod@4.3.6):
dependencies:
convex: 1.33.1(react@19.2.4)
optionalDependencies:
'@standard-schema/spec': 1.1.0
react: 19.2.4
zod: 4.3.6
convex@1.32.0(react@19.2.4):
dependencies:
esbuild: 0.27.0
prettier: 3.8.1
ws: 8.18.0
optionalDependencies:
react: 19.2.4
transitivePeerDependencies:
- bufferutil
- utf-8-validate
convex@1.33.1(react@19.2.4):
dependencies:
esbuild: 0.27.0
@@ -4505,8 +4368,6 @@ snapshots:
error-causes@3.0.2: {}
es-toolkit@1.44.0: {}
es-toolkit@1.45.1: {}
esbuild@0.18.20:
@@ -4767,9 +4628,9 @@ snapshots:
ini@1.3.8: {}
ioredis@5.9.3:
ioredis@5.10.0:
dependencies:
'@ioredis/commands': 1.5.0
'@ioredis/commands': 1.5.1
cluster-key-slot: 1.1.2
debug: 4.4.3
denque: 2.1.0
@@ -4818,8 +4679,6 @@ snapshots:
optionalDependencies:
'@pkgjs/parseargs': 0.11.0
jose@6.2.1: {}
js-git@0.7.8:
dependencies:
bodec: 0.1.0
@@ -5514,13 +5373,11 @@ snapshots:
uncrypto@0.1.3: {}
undici-types@7.16.0: {}
undici-types@7.18.2: {}
universalify@2.0.1: {}
unstorage@1.17.4(ioredis@5.9.3):
unstorage@1.17.4(ioredis@5.10.0):
dependencies:
anymatch: 3.1.3
chokidar: 5.0.0
@@ -5531,7 +5388,7 @@ snapshots:
ofetch: 1.5.1
ufo: 1.6.3
optionalDependencies:
ioredis: 5.9.3
ioredis: 5.10.0
util-deprecate@1.0.2: {}

View File

@@ -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"

View File

@@ -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('自动回复功能正在开发中,敬请期待!');
}
}