@shun-js/aibaiban-server 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/server/util/feishu.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shun-js/aibaiban-server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "aibaiban.com server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai aibaiban"
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public",
|
|
43
43
|
"registry": "https://registry.npmjs.org/"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "ee6795344075586d7895122597325ffc18784a1e"
|
|
46
46
|
}
|
package/server/util/feishu.js
CHANGED
|
@@ -52,7 +52,7 @@ exports.chatFeishuMsg = (req) => {
|
|
|
52
52
|
// msg
|
|
53
53
|
const uaJson = JSON.stringify(req.useragent || {});
|
|
54
54
|
const userid = req.headers.userid;
|
|
55
|
-
const prompt = req.body.userPrompt;
|
|
55
|
+
const prompt = decodeURIComponent(req.body.userPrompt);
|
|
56
56
|
|
|
57
57
|
const msg = `【通知】/chat被访问\nuserid:${userid}\nua:\n${uaJson}\nprompt:\n${prompt}`;
|
|
58
58
|
exports.feishuMsg(msg);
|