This commit is contained in:
邹宗楠
2022-06-01 21:57:18 +08:00
parent 3b59f860d8
commit fe35910c98
9 changed files with 109 additions and 36 deletions

View File

@@ -1397,6 +1397,11 @@ func CancelOrder(ctx *jxcontext.Context, order *model.GoodsOrder, reason string)
if err != nil {
errList.AddErr(err)
}
}else if orderPay.PayType == model.PayTypeTicTok {
orderPayRefund, err = RefundOrderByTT(ctx, orderPay, refundID, orderPay.TotalFee, reason)
if err != nil {
errList.AddErr(err)
}
}
if err == nil {
//如果用了优惠券,状态要刷回去