修复微信支付组装订单body超过128字符,导致的生成订单异常的情况

pull/201/head
JianWeie 3 years ago
parent 18c8f6a67e
commit 2ee1545965

@ -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,

Loading…
Cancel
Save