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