京东物料订单增加逆向完成状态
This commit is contained in:
@@ -828,13 +828,15 @@ func (a *API) GetJdSkuDirectPrice(skuID int) (price int64, err error) {
|
|||||||
"pageSize": 1,
|
"pageSize": 1,
|
||||||
}
|
}
|
||||||
body, err := a.AccessStorePage2("https://stock-store.jddj.com/storeproduct/query", jdParams, true, "")
|
body, err := a.AccessStorePage2("https://stock-store.jddj.com/storeproduct/query", jdParams, true, "")
|
||||||
bodyStr := body.(map[string]interface{})["fakeData"].(string)
|
if body != nil {
|
||||||
result := regexpJDSkuDirectPrice.FindAllStringSubmatch(bodyStr, -1)
|
bodyStr := body.(map[string]interface{})["fakeData"].(string)
|
||||||
if len(result) > 0 {
|
result := regexpJDSkuDirectPrice.FindAllStringSubmatch(bodyStr, -1)
|
||||||
if result[3][1] != "" {
|
if len(result) > 0 {
|
||||||
return utils.Float64TwoInt64(utils.Str2Float64(result[3][1]) * 100), err
|
if result[3][1] != "" {
|
||||||
} else {
|
return utils.Float64TwoInt64(utils.Str2Float64(result[3][1]) * 100), err
|
||||||
return 0, err
|
} else {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return price, err
|
return price, err
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ const (
|
|||||||
SoStatusCode10054 = "10054" //分拣中心发货
|
SoStatusCode10054 = "10054" //分拣中心发货
|
||||||
SoStatusCode10033 = "10033" //站点验收
|
SoStatusCode10033 = "10033" //站点验收
|
||||||
SoStatusCode10034 = "10034" //妥投
|
SoStatusCode10034 = "10034" //妥投
|
||||||
|
SoStatusCode10038 = "10038" //逆向完成
|
||||||
)
|
)
|
||||||
|
|
||||||
type API struct {
|
type API struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user