- recalculate order.Weight when platform not give
This commit is contained in:
@@ -185,7 +185,7 @@ func (c *PurchaseHandler) callbackMsg2Status(msg *ebaiapi.CallbackMsg) *model.Or
|
||||
|
||||
func getTimeFromTimestampStr(sendTime string) time.Time {
|
||||
timeStamp := utils.Str2Int64WithDefault(sendTime, 0)
|
||||
if timeStamp == 0 {
|
||||
if timeStamp < 1538103149 { // 立即达订单给的是1(而不是空,0),1538103149不是特殊值,只是一个任意之前的时间,这样写可以处理
|
||||
return utils.DefaultTimeValue
|
||||
}
|
||||
return utils.Timestamp2Time(timeStamp)
|
||||
|
||||
Reference in New Issue
Block a user