This commit is contained in:
邹宗楠
2025-04-14 11:33:46 +08:00
parent 814284fb8c
commit 9b3b73fd52
2 changed files with 14 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ package localjx
import (
"errors"
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"math"
"regexp"
"strings"
@@ -242,6 +243,8 @@ func CreateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64,
return outJxOrder, err
}
globals.SugarLogger.Debugf("----jxorder:= %s", utils.Format4Output(jxOrder, false))
globals.SugarLogger.Debugf("----outJxOrder:= %s", utils.Format4Output(outJxOrder, false))
if outJxOrder.TotalPrice != jxOrder.TotalPrice && jxOrder.IsPriceDefend != model.YES {
return nil, fmt.Errorf("商品或配送信息发生改变,请重新下单")
}
@@ -1026,10 +1029,6 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
outJxOrder.FreightPrice = 0
}
}
// ?????????????????????? 测试
if storeDetail.ID == 668470 || storeDetail.ID == 668469 || storeDetail.ID == 800397 {
outJxOrder.FreightPrice = 1
}
if IsDeliverySelf {
outJxOrder.FreightPrice = 0