This commit is contained in:
xuecong 2021-11-09 20:23:04 +08:00
parent 06c2d49088
commit a91f96d906
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ const NotifyWechatPayAction = <NotifyAction>{
const xml = await RawBody(ctx.req, { const xml = await RawBody(ctx.req, {
length: ctx.request.length, length: ctx.request.length,
limit: '1mb', limit: '1mb',
encoding: ctx.request.charset && 'utf-8' encoding: ctx.request.charset || 'utf-8'
}); });
const notify = <WechatPayNotify>await wechatService.parseXML(xml); const notify = <WechatPayNotify>await wechatService.parseXML(xml);

View File

@ -27,7 +27,7 @@ const OaReplyAction = <OaAction>{
: await RawBody(ctx.req, { : await RawBody(ctx.req, {
length: ctx.request.length, length: ctx.request.length,
limit: '1mb', limit: '1mb',
encoding: ctx.request.charset && 'utf-8' encoding: ctx.request.charset || 'utf-8'
}); });
const xml = await wechatService.parseXML(bodyXml); const xml = await wechatService.parseXML(bodyXml);