京东商城推订单
This commit is contained in:
@@ -1016,7 +1016,9 @@ func SaveJdsOrders(ctx *jxcontext.Context, orderCreatedStart, orderCreatedEnd ti
|
|||||||
}
|
}
|
||||||
orders, err := result2Orders(ctx, orderResult)
|
orders, err := result2Orders(ctx, orderResult)
|
||||||
for _, order := range orders {
|
for _, order := range orders {
|
||||||
// partner.CurOrderManager.OnOrderNew(order, model.Order2Status(order))
|
order.StoreID = 102919
|
||||||
|
order.StoreName = "商城模板(成都发货)"
|
||||||
|
partner.CurOrderManager.OnOrderNew(order, model.Order2Status(order))
|
||||||
globals.SugarLogger.Debugf("SaveJdsOrders, order: [%v]", utils.Format4Output(order, false))
|
globals.SugarLogger.Debugf("SaveJdsOrders, order: [%v]", utils.Format4Output(order, false))
|
||||||
noticeMsg := fmt.Sprintf("京东商城新订单,订单号:[%v] ,将要发到的门店id:[%v] , 门店名:[%v]", order.VendorOrderID, order.StoreID, order.StoreName)
|
noticeMsg := fmt.Sprintf("京东商城新订单,订单号:[%v] ,将要发到的门店id:[%v] , 门店名:[%v]", order.VendorOrderID, order.StoreID, order.StoreName)
|
||||||
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "DDC5657B43EE11E9A9FF525400E86DC0", "京东商城来新订单了!", noticeMsg)
|
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "DDC5657B43EE11E9A9FF525400E86DC0", "京东商城来新订单了!", noticeMsg)
|
||||||
@@ -1058,6 +1060,7 @@ func result2Orders(ctx *jxcontext.Context, result *jdshopapi.AllOrdersResult) (o
|
|||||||
ActualPayPrice: orderDetail.ActualPayPrice,
|
ActualPayPrice: orderDetail.ActualPayPrice,
|
||||||
Status: model.OrderStatusNew,
|
Status: model.OrderStatusNew,
|
||||||
TotalShopMoney: utils.Float64TwoInt64(math.Round(utils.Int64ToFloat64(orderDetail.ActualPayPrice) * jdshopapi.JdsPayPercentage)),
|
TotalShopMoney: utils.Float64TwoInt64(math.Round(utils.Int64ToFloat64(orderDetail.ActualPayPrice) * jdshopapi.JdsPayPercentage)),
|
||||||
|
DeliveryFlag: model.OrderDeliveryFlagMaskScheduleDisabled,
|
||||||
}
|
}
|
||||||
//获取真实手机号
|
//获取真实手机号
|
||||||
fakeMobile, err := api.JdShopAPI.PhoneSensltiveInfo(order.VendorOrderID2, orderDetail.MobileKey)
|
fakeMobile, err := api.JdShopAPI.PhoneSensltiveInfo(order.VendorOrderID2, orderDetail.MobileKey)
|
||||||
|
|||||||
Reference in New Issue
Block a user