1
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"net/http"
|
"net/http"
|
||||||
"reflect"
|
"reflect"
|
||||||
"sort"
|
"sort"
|
||||||
@@ -391,6 +392,8 @@ func (a *API) AccessAPIHavePage(apiStr string, jdParams map[string]interface{},
|
|||||||
localJdParams[KeyPageNo] = curPage
|
localJdParams[KeyPageNo] = curPage
|
||||||
localJdParams[KeyPageSize] = pageSize
|
localJdParams[KeyPageSize] = pageSize
|
||||||
jsonResult, err := a.AccessAPI(apiStr, localJdParams)
|
jsonResult, err := a.AccessAPI(apiStr, localJdParams)
|
||||||
|
globals.SugarLogger.Debugf("============jsonResult====%s", utils.Format4Output(jsonResult, false))
|
||||||
|
globals.SugarLogger.Debugf("============err====%s", err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, totalCount, err
|
return nil, totalCount, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -454,6 +454,7 @@ func (a *API) BatchUpdateOutSkuId(skuInfoList []*SkuIDPair) (failedList []*Batch
|
|||||||
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=180&apiid=e433b95f74524dab91718432c0358977
|
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=180&apiid=e433b95f74524dab91718432c0358977
|
||||||
// pageNo 从1开始
|
// pageNo 从1开始
|
||||||
func (a *API) QuerySkuInfos(queryParam *QuerySkuParam) (skuList []*SkuMain, totalCount int, err error) {
|
func (a *API) QuerySkuInfos(queryParam *QuerySkuParam) (skuList []*SkuMain, totalCount int, err error) {
|
||||||
|
globals.SugarLogger.Debugf("============queryParam====%s", utils.Format4Output(queryParam, false))
|
||||||
if queryParam.PageNo <= 0 {
|
if queryParam.PageNo <= 0 {
|
||||||
queryParam.PageNo = 1
|
queryParam.PageNo = 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user