Browse Source

提交

master
gwbvipvip 10 months ago
parent
commit
3f0a046ce9
2 changed files with 5 additions and 4 deletions
  1. +2
    -0
      BPA.KitChen.GroupMealOrder.Core/Entity/BPA_WeighOrder.cs
  2. +3
    -4
      BPA.KitChen.WeChat/WechatServer/Service/WechatPayService.cs

+ 2
- 0
BPA.KitChen.GroupMealOrder.Core/Entity/BPA_WeighOrder.cs View File

@@ -71,5 +71,7 @@ namespace BPA.KitChen.GroupMealOrder.Core.Entity
public string CreateId { get; set; }

public string TransactionId { get; set; }

public string TradeNo { get; set; }
}
}

+ 3
- 4
BPA.KitChen.WeChat/WechatServer/Service/WechatPayService.cs View File

@@ -86,7 +86,7 @@ namespace BPA.KitChen.WeChat.WechatServer.Service
TotalFee = total_fee,
Attach = attach,
SpBillCreateIp = opt.MchIP,
NotifyUrl = "https://bpa.black-pa.com:21995/order/api/wechat/wechat/paynotity", //opt.WeChatPayNotifyUrl,
NotifyUrl = opt.WeChatPayNotifyUrl,
TradeType = "JSAPI",
OpenId =string.IsNullOrEmpty(openid)? order .CreateId: openid
};
@@ -107,9 +107,8 @@ namespace BPA.KitChen.WeChat.WechatServer.Service
payment.signType = parameter.FirstOrDefault(x => x.Key == "signType").Value;
payment.trade_no = parameter.FirstOrDefault(x => x.Key == "paymentId").Value;


var res = await SqlSugarDb.Db.Updateable<BPA_WeighOrder>().ExecuteCommandAsync();
order.TradeNo = payment.trade_no;
var res = await SqlSugarDb.Db.Updateable<BPA_WeighOrder>(order).ExecuteCommandAsync();

if (res>0)
{


Loading…
Cancel
Save