手误
This commit is contained in:
parent
06c2d49088
commit
a91f96d906
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user