京东JavaDate类型,改为毫秒的timestamp类型兼容处理。
This commit is contained in:
@@ -89,7 +89,7 @@ func (a *API) OrderDiscountQueryActivityInfoById(activityID int64, promotionType
|
||||
}
|
||||
result, err := a.AccessAPINoPage("orderdiscount/queryActivityInfoById", params, nil, nil, genNoPageResultParser("errorCode", "errorInfos", "data", "10000"))
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(result, &response, false)
|
||||
err = JdMap2StructByJson(result, &response, false)
|
||||
}
|
||||
return response, err
|
||||
}
|
||||
@@ -102,7 +102,7 @@ func (a *API) QueryPromotionInfo(promotionInfoId int64) (promotionInfo *Promotio
|
||||
}
|
||||
result, err := a.AccessAPINoPage("singlePromote/queryPromotionInfo", jdParams, nil, nil, genNoPageResultParser("errorCode", "errorInfos", "data", "0"))
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(result, &promotionInfo, false)
|
||||
err = JdMap2StructByJson(result, &promotionInfo, false)
|
||||
}
|
||||
return promotionInfo, err
|
||||
}
|
||||
@@ -117,7 +117,7 @@ func (a *API) QueryPromotionSku(promotionType int, skuID int64, promotionState i
|
||||
}
|
||||
result, _, err := a.AccessAPIHavePage("singlePromote/queryPromotionSku", jdParams, nil, nil, genNormalHavePageResultParser("data"))
|
||||
if err != nil {
|
||||
err = utils.Map2StructByJson(result, &skuResultList, false)
|
||||
err = JdMap2StructByJson(result, &skuResultList, false)
|
||||
}
|
||||
return skuResultList, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user