This commit is contained in:
邹宗楠
2024-08-20 18:07:35 +08:00
parent c662f8089c
commit 0bdb3b6629
2 changed files with 8 additions and 1 deletions

View File

@@ -198,7 +198,9 @@ func (c *PurchaseHandler) onAfsOrderMsg(msg *mtwmapi.CallbackMsg) (retVal *mtwma
refundDetail, err := mtmApi.GetOrderRefundDetail(utils.Str2Int64(order.VendorOrderID), 0)
if err == nil && len(refundDetail) > 0 {
for _, rd := range refundDetail {
order.TotalShopMoney = order.TotalShopMoney + jxutils.StandardPrice2Int(utils.Str2Float64(rd.RefundPartialEstimateCharge.SettleAmount))
if rd.RefundPartialEstimateCharge.SettleAmount != "" {
order.TotalShopMoney = order.TotalShopMoney + jxutils.StandardPrice2Int(utils.Str2Float64(rd.RefundPartialEstimateCharge.SettleAmount))
}
}
switch order.EarningType {
case model.EarningTypePoints: // 扣点