From 2ee15459651ae48e3f5c65b75607ab9fea4be389 Mon Sep 17 00:00:00 2001 From: JianWeie Date: Wed, 6 Apr 2022 10:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E7=BB=84=E8=A3=85=E8=AE=A2=E5=8D=95body=E8=B6=85?= =?UTF-8?q?=E8=BF=87128=E5=AD=97=E7=AC=A6=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E7=94=9F=E6=88=90=E8=AE=A2=E5=8D=95=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Services/Pay/WeChatPayServices.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreCms.Net.Services/Pay/WeChatPayServices.cs b/CoreCms.Net.Services/Pay/WeChatPayServices.cs index d7a2788..c586cea 100644 --- a/CoreCms.Net.Services/Pay/WeChatPayServices.cs +++ b/CoreCms.Net.Services/Pay/WeChatPayServices.cs @@ -105,7 +105,7 @@ namespace CoreCms.Net.Services var request = new WeChatPayUnifiedOrderRequest { - Body = entity.payTitle.Length > 127 ? entity.payTitle[..125] : entity.payTitle, + Body = entity.payTitle.Length > 50 ? entity.payTitle[..50] : entity.payTitle, OutTradeNo = entity.paymentId, TotalFee = Convert.ToInt32(entity.money * 100), SpBillCreateIp = entity.ip,