明树Git Lab

Commit 34b5c215 authored by zfp1's avatar zfp1

4

parent 5ee63365
...@@ -70,10 +70,10 @@ app.post('/wechat', async (req, res) => { ...@@ -70,10 +70,10 @@ app.post('/wechat', async (req, res) => {
<Content><![CDATA[${fullContent}]]></Content> <Content><![CDATA[${fullContent}]]></Content>
</xml> </xml>
`; `;
console.log(xml2js.ValidationError(responseXML)) console.log(xml2js.parseString(responseXML))
res.set('Content-Type', 'text/xml'); res.set('Content-Type', 'text/xml');
console.log(responseXML) console.log(responseXML)
res.send(responseXML); return res.send(responseXML);
// } catch (error) { // } catch (error) {
// console.error(error); // console.error(error);
// res.status(500).send(' 服务异常'); // res.status(500).send(' 服务异常');
......
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