This commit is contained in:
邹宗楠
2022-05-26 13:55:20 +08:00
parent 815d894258
commit fbd31c87ce

View File

@@ -40,7 +40,11 @@ func pay4OrderByWX(ctx *jxcontext.Context, order *model.GoodsOrder, vendorPayTyp
if authInfo, err := ctx.GetV2AuthInfo(); err == nil && authInfo.GetAuthType() == weixin.AuthTypeMini {
param.OpenID = authInfo.GetAuthID()
}
globals.SugarLogger.Debug("err1=====================", err)
result, err := api.WxpayAPI.CreateUnifiedOrder(param)
globals.SugarLogger.Debug("err2=====================", err)
globals.SugarLogger.Debug("err3=====================", fmt.Sprintf("%+v", result))
if err == nil {
orderPay = &model.OrderPay{
PayOrderID: param.OutTradeNo,
@@ -56,8 +60,6 @@ func pay4OrderByWX(ctx *jxcontext.Context, order *model.GoodsOrder, vendorPayTyp
TotalFee: int(order.ActualPayPrice),
}
}
globals.SugarLogger.Debug("err=====================", err)
globals.SugarLogger.Debug("err=====================", fmt.Sprintf("%+v", result))
return orderPay, err
}