明树Git Lab

Commit f3821347 authored by zfp1's avatar zfp1

update

parent 5c789684
......@@ -55,9 +55,9 @@ app.post('/wechat', async (req, res) => {
// let escaped = text.replace(/\n/g, '
');
// 转义XML特殊字符[3]()[5]()
escaped = escaped.replace(/[&<>"']/g, (char) => xmlEntities[char]);
text = text.replace(/[&<>"']/g, (char) => xmlEntities[char]);
return escaped;
return text;
}
let fullContent = escapeWechatContent(completion.choices[0].message.content);
// 响应构造
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment