This commit is contained in:
邹宗楠
2022-11-17 11:48:17 +08:00
parent 93123a7d5c
commit 9c5148cbc7
2 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import (
"encoding/json"
"errors"
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"net/http"
"reflect"
"sort"
@@ -391,6 +392,8 @@ func (a *API) AccessAPIHavePage(apiStr string, jdParams map[string]interface{},
localJdParams[KeyPageNo] = curPage
localJdParams[KeyPageSize] = pageSize
jsonResult, err := a.AccessAPI(apiStr, localJdParams)
globals.SugarLogger.Debugf("============jsonResult====%s", utils.Format4Output(jsonResult, false))
globals.SugarLogger.Debugf("============err====%s", err)
if err != nil {
return nil, totalCount, err
}

View File

@@ -454,6 +454,7 @@ func (a *API) BatchUpdateOutSkuId(skuInfoList []*SkuIDPair) (failedList []*Batch
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=180&apiid=e433b95f74524dab91718432c0358977
// pageNo 从1开始
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 {
queryParam.PageNo = 1
}