|
@@ -260,7 +260,7 @@ namespace MySystem
|
|
|
ConsumerId = suborder.ConsumerId,
|
|
|
MerchantId = suborder.MerchantId,
|
|
|
OrderId = suborder.Id,
|
|
|
- GetMoney = GetMoney,
|
|
|
+ GetMoney = Math.Round(GetMoney, 2),
|
|
|
QueryCount = PayMode,
|
|
|
Sort = OrderId,
|
|
|
SeoTitle = suborder.OrderNo,
|
|
@@ -270,12 +270,15 @@ namespace MySystem
|
|
|
MerchantAddInfo merchantAdd = db.MerchantAddInfo.FirstOrDefault(m => m.Id == suborder.MerchantId) ?? new MerchantAddInfo();
|
|
|
if(order.PayMode == 1)
|
|
|
{
|
|
|
- AlipayFunction.Instance.Refund(suborder.SeoTitle, GetMoney.ToString("f2"), "门店分红", merchantAdd.AlipayAuthToken);
|
|
|
+ AlipayFunction.Instance.Refund(suborder.SeoTitle, Math.Round(GetMoney, 2).ToString(), "门店分红", merchantAdd.AlipayAuthToken);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- Dictionary<string, string> dic = WeChatFunction.Instance.Refund(merchantAdd.SubMchid, GetMoney, suborder.PayMoney, suborder.OrderNo, DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8), "门店分红");
|
|
|
+ Dictionary<string, string> dic = WeChatFunction.Instance.Refund(merchantAdd.SubMchid, Math.Round(GetMoney, 2), suborder.PayMoney, suborder.OrderNo, DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8), "门店分红");
|
|
|
}
|
|
|
+ merchant.ActCurrentAmount += Math.Round(GetMoney, 2); //活动已返金额
|
|
|
+ db.SaveChanges();
|
|
|
+
|
|
|
if (suborder.CurDivi < suborder.MaxDivi)
|
|
|
{
|
|
|
RedisDbconn.Instance.AddList("ConsumerOrders:Divi:" + PayMode + ":" + MerchantId, suborder);
|