This commit is contained in:
richboo111
2022-08-03 11:39:07 +08:00
parent a1a080b68e
commit 0901922618

View File

@@ -302,9 +302,22 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
//更新mixPay 状态
mixPayInfo.Status = -1 //model.BillMixPayRefund1 //退款状态
if _, err := dao.UpdateEntityTx(txDB, &mixPayInfo, "Status"); err != nil {
if _, err := dao.UpdateEntityTx(txDB, mixPayInfo, "Status"); err != nil {
return FailCode, err
}
/////////////
mixPayInfo1, err := dao.GetMixPayDetail(orderWay.OrderID)
if err != nil {
return 0, err
}
globals.SugarLogger.Debug("输出mixPayInfo1的status", mixPayInfo1.Status)
userBill1, err := dao.GetUserBill(db, orderWay.UserID, "")
if err != nil {
return 0, err
}
globals.SugarLogger.Debug("输出userBill", userBill1.AccountBalance)
////////////////
globals.SugarLogger.Debug("回调进入微信退款")
res, err := RefundOrderByTL(ctx, orderWay, order, order.OtherWayBill, int(order.ChannelFee*100), "申请退款")
if len(res.VendorRefundID) > 0 {
return SuccessCode, err