This commit is contained in:
邹宗楠
2022-11-02 19:47:35 +08:00
parent 04cd4c2b86
commit ffc2a7ea5d
2 changed files with 3 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ func GetOrderRiderInfoToPlatform(orderId string, wayBillStatus int) {
}
riderInfo.ThirdCarrierOrderId = v.VendorWaybillID
globals.SugarLogger.Debugf("=============================caoniam= %s", utils.Format4Output(riderInfo, false))
switch riderInfo.LogisticsStatus {
case 5: // 呼叫骑手
riderInfo.LogisticsStatus = 0

View File

@@ -188,6 +188,8 @@ func (p *PurchaseHandler) getOrder(vendorOrgCode, vendorOrderID, vendorStoreID s
latestReceiptTime := order.ExpectedDeliveredTime
h, m, _ := latestReceiptTime.Clock()
globals.SugarLogger.Debugf("===========latestReceiptTime %s,---%d", latestReceiptTime, latestReceiptTime.Day())
globals.SugarLogger.Debugf("===========latestReceiptTime %d%d", h, m)
if latestReceiptTime.Day() == time.Now().Day() && utils.Str2Int16(fmt.Sprintf("%d%d", h, m)) >= openTime && utils.Str2Int16(fmt.Sprintf("%d%d", h, m)) < closeTime && localStore.Status == model.StoreStatusOpened {
order.BusinessType = model.BusinessTypeDingshida
} else {