This commit is contained in:
Hiven
2023-07-24 10:26:24 +08:00
parent 3201f4d26d
commit f4def7f8a0
3 changed files with 8 additions and 11 deletions

8
utils/configs/order.go Normal file
View File

@@ -0,0 +1,8 @@
package configs
type WebSetTimeInfo struct {
ProductDay int64
FactoryDeliverDay int64
DeliverUpsDay int64
UpsTransDay int64
}

View File

@@ -105,11 +105,6 @@ func GetOrderStatusAndLogistics(req GetOrderStatusAndLogisticsReq) (res GetOrder
status = constants.STATUS_FONT_SHIPPED
//到达-云仓
case constants.STATUS_NEW_ARRIVAL:
if req.DeliveryMethod == constants.DELIVERY_METHOD_CLOUD {
logisticsStatus = constants.LOGISTICS_STATUS_SHIPPING
}
status = constants.STATUS_FONT_INVENTORY
//订单完成
case constants.STATUS_NEW_COMPLETED:
if req.DeliveryMethod == constants.DELIVERY_METHOD_CLOUD {
status = constants.STATUS_FONT_COMPLETED_CLOUD
@@ -165,11 +160,7 @@ func GetOrderStatusAndLogistics(req GetOrderStatusAndLogisticsReq) (res GetOrder
res.Times = times
} else {
timesData := times[0:3]
if logisticsStatus == constants.LOGISTICS_STATUS_DRAW {
timesData[1].Time = format.TimeIntToFormat(req.OrderCtime + req.WebSetTimeInfo.ProductDay*daySecond)
}
res.Times = timesData
}
return res
}