This commit is contained in:
邹宗楠
2021-11-30 19:15:57 +08:00
parent 909c8b5ed5
commit efe5d96d62

View File

@@ -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,