mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:43:26 +08:00
【修复】修复微信服务商开通子商户号支付异常的问题。
This commit is contained in:
@@ -174,7 +174,14 @@ namespace CoreCms.Net.Services
|
||||
|
||||
if (tradeType == GlobalEnumVars.WeiChatPayTradeType.JSAPI.ToString())
|
||||
{
|
||||
orderRequest.OpenId = openId;
|
||||
if (!string.IsNullOrEmpty(_optionsAccessor.Value.SubMchId))
|
||||
{
|
||||
orderRequest.SubOpenId = openId;
|
||||
}
|
||||
else
|
||||
{
|
||||
orderRequest.OpenId = openId;
|
||||
}
|
||||
}
|
||||
|
||||
var response = await _client.ExecuteAsync(orderRequest, _optionsAccessor.Value);
|
||||
|
||||
Reference in New Issue
Block a user