|
@@ -180,12 +180,17 @@ namespace MySystem
|
|
|
{
|
|
|
string TradeNo = order.SeoTitle;
|
|
|
string OrderNo = order.OrderNo;
|
|
|
+ decimal hdfee = 0.0038M * order.PayMoney * (1 - set.GetPercent - 0.01M);
|
|
|
+ hdfee = decimal.Parse(hdfee.ToString("f2"));
|
|
|
+ decimal servicefee = 0.01M * order.PayMoney - hdfee;
|
|
|
+ servicefee = servicefee * 100;
|
|
|
+ int servicefeeNum = int.Parse(servicefee.ToString("f0"));
|
|
|
List<ReceiverList> Receivers = new List<ReceiverList>();
|
|
|
Receivers.Add(new ReceiverList()
|
|
|
{
|
|
|
type = "MERCHANT_ID", //分账接收方类型
|
|
|
account = WeChatFunction.Instance.MchId, //分账接收方账号
|
|
|
- amount = int.Parse(fee.ToString("f0")), //分账金额
|
|
|
+ amount = servicefeeNum, //分账金额
|
|
|
description = "服务费", //分账描述
|
|
|
});
|
|
|
LogHelper.Instance.WriteLog("TradeNo:" + TradeNo, "微信分账队列监听");
|