123
This commit is contained in:
@@ -98,13 +98,13 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
|
|||||||
db = dao.GetDB()
|
db = dao.GetDB()
|
||||||
)
|
)
|
||||||
//有可能是库里已经有这个订单了
|
//有可能是库里已经有这个订单了
|
||||||
orderE, err := partner.CurOrderManager.LoadOrder(msg.OrderID+"00000001", model.VendorIDJDShop)
|
orderE, err := partner.CurOrderManager.LoadOrder(msg.OrderID+"000001", model.VendorIDJDShop)
|
||||||
if orderE != nil {
|
if orderE != nil {
|
||||||
return order, fmt.Errorf("已经存在此订单!")
|
return order, fmt.Errorf("已经存在此订单!")
|
||||||
}
|
}
|
||||||
order = &model.GoodsOrder{
|
order = &model.GoodsOrder{
|
||||||
VendorOrderID2: msg.OrderID,
|
VendorOrderID2: msg.OrderID,
|
||||||
VendorOrderID: msg.OrderID + "00000001",
|
VendorOrderID: msg.OrderID + "000001",
|
||||||
VendorID: model.VendorIDJDShop,
|
VendorID: model.VendorIDJDShop,
|
||||||
BaseFreightMoney: jxutils.StandardPrice2Int(utils.Str2Float64(msg.FreightPrice)),
|
BaseFreightMoney: jxutils.StandardPrice2Int(utils.Str2Float64(msg.FreightPrice)),
|
||||||
VendorStatus: msg.OrderState,
|
VendorStatus: msg.OrderState,
|
||||||
|
|||||||
Reference in New Issue
Block a user