- handle some jd order don't have pickDeadline in jd.Map2Order

This commit is contained in:
gazebo
2019-02-16 23:35:25 +08:00
parent 0f9949d73d
commit dfc4577a3e

View File

@@ -107,7 +107,7 @@ func (c *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
CoordinateType: model.CoordinateTypeMars,
BuyerComment: utils.TrimBlankChar(utils.Interface2String(result["orderBuyerRemark"])),
ExpectedDeliveredTime: utils.Str2TimeWithDefault(utils.Interface2String(result["orderPreEndDeliveryTime"]), utils.DefaultTimeValue),
PickDeadline: utils.Str2Time(result["pickDeadline"].(string)),
PickDeadline: utils.Str2TimeWithDefault(utils.Interface2String(result["pickDeadline"]), utils.DefaultTimeValue),
VendorStatus: utils.Int64ToStr(utils.MustInterface2Int64(result["orderStatus"])),
OrderSeq: int(utils.MustInterface2Int64(result["orderNum"])),
StatusTime: utils.Str2Time(result["orderPurchaseTime"].(string)),