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

pull/201/MERGE
JianWeie 3 years ago
parent 322443908e
commit f34568f9ae

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