1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user