mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 00:49:49 +08:00
优化微信支付、支付宝支付多种支付终端情况下的一一对应处理。
This commit is contained in:
@@ -180,13 +180,16 @@ namespace CoreCms.Net.Services
|
||||
openId = user.openid;
|
||||
}
|
||||
|
||||
var notifyUrl = config.notifyUrl.EndsWith("/") ? config.notifyUrl + "m-" + config.appId : config.notifyUrl + "/m-" + config.appId;
|
||||
|
||||
|
||||
var orderRequest = new WeChatPayUnifiedOrderRequest
|
||||
{
|
||||
Body = entity.payTitle.Length > 40 ? entity.payTitle[..40] : entity.payTitle,
|
||||
OutTradeNo = entity.paymentId,
|
||||
TotalFee = Convert.ToInt32(entity.money * 100),
|
||||
SpBillCreateIp = entity.ip,
|
||||
NotifyUrl = config.notifyUrl,
|
||||
NotifyUrl = notifyUrl,
|
||||
TradeType = tradeType,
|
||||
//OpenId = openId
|
||||
};
|
||||
@@ -233,7 +236,7 @@ namespace CoreCms.Net.Services
|
||||
jm.status = true;
|
||||
jm.msg = "创建JSAPI支付环境成功";
|
||||
jm.data = parameter;
|
||||
//jm.otherData = response;
|
||||
jm.otherData = response;
|
||||
}
|
||||
//扫码支付
|
||||
else if (tradeType == GlobalEnumVars.WeiChatPayTradeType.NATIVE.ToString())
|
||||
|
||||
Reference in New Issue
Block a user