明树Git Lab

Commit a57dfd19 authored by zfp1's avatar zfp1

3

parent 12c53dfd
...@@ -13,7 +13,7 @@ const openai = new OpenAI({ ...@@ -13,7 +13,7 @@ const openai = new OpenAI({
}); });
// 微信服务号验证 // 微信服务号验证
app.get('/', (req, res) => { app.get('/wechat', (req, res) => {
const { signature, timestamp, nonce, echostr } = req.query; const { signature, timestamp, nonce, echostr } = req.query;
const token = 'deepseektest'; const token = 'deepseektest';
...@@ -24,7 +24,7 @@ app.get('/', (req, res) => { ...@@ -24,7 +24,7 @@ app.get('/', (req, res) => {
}); });
// 消息处理流程 // 消息处理流程
app.post('/', async (req, res) => { app.post('/wechat', async (req, res) => {
try { try {
// XML解析 // XML解析
const result = await xml2js.parseStringPromise(req.body); const result = await xml2js.parseStringPromise(req.body);
......
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