From a91f96d906f08df1a8b8ab26527ea728b6a0a8a0 Mon Sep 17 00:00:00 2001 From: xuecong <> Date: Tue, 9 Nov 2021 20:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/module/notify/controller/wechat/pay.ts | 2 +- server/src/module/oa/controller/service/reply.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/module/notify/controller/wechat/pay.ts b/server/src/module/notify/controller/wechat/pay.ts index bead5cc..0073aa4 100644 --- a/server/src/module/notify/controller/wechat/pay.ts +++ b/server/src/module/notify/controller/wechat/pay.ts @@ -57,7 +57,7 @@ const NotifyWechatPayAction = { const xml = await RawBody(ctx.req, { length: ctx.request.length, limit: '1mb', - encoding: ctx.request.charset && 'utf-8' + encoding: ctx.request.charset || 'utf-8' }); const notify = await wechatService.parseXML(xml); diff --git a/server/src/module/oa/controller/service/reply.ts b/server/src/module/oa/controller/service/reply.ts index 07287e4..23bc4a1 100644 --- a/server/src/module/oa/controller/service/reply.ts +++ b/server/src/module/oa/controller/service/reply.ts @@ -27,7 +27,7 @@ const OaReplyAction = { : await RawBody(ctx.req, { length: ctx.request.length, limit: '1mb', - encoding: ctx.request.charset && 'utf-8' + encoding: ctx.request.charset || 'utf-8' }); const xml = await wechatService.parseXML(bodyXml);