|
|
@@ -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) |
|
|
|
{ |
|
|
|