1
This commit is contained in:
@@ -30,7 +30,7 @@ func init() {
|
||||
// 天天果园
|
||||
//api = New("c45e6510-00ba-4be2-977e-bcb9c9792cc7", "5d5577a2506f41b8b4ec520ba83490f5", "0b01b9eeb15b41dab1c3d05d95c17a26")
|
||||
// 京东果园 320406
|
||||
api = New("de4a9818-b171-41ed-ba37-0b060cad001f", "1dba76d40cac446ca500c0391a0b6c9d", "a88d031a1e7b462cb1579f12e97fe7f4")
|
||||
//api = New("de4a9818-b171-41ed-ba37-0b060cad001f", "1dba76d40cac446ca500c0391a0b6c9d", "a88d031a1e7b462cb1579f12e97fe7f4")
|
||||
// 京东白货
|
||||
//api = New("9053e4fd-4e0e-4e9e-8ab1-f348e5cbf3e7", "4602bd4b84984186815dbc03299c7094", "386ab19719d9470487011217d0c57349")
|
||||
// 果切 379599
|
||||
@@ -38,7 +38,7 @@ func init() {
|
||||
// 李氏水果 346254
|
||||
//api = New("c7c41cb6-6db4-4f67-a864-ca5f524653d0", "13493b4a951945f689dcc989b6693631", "7e28a37be43a430bb5928c835e482fe2")
|
||||
// 381564
|
||||
//api = New("4d0c707a-54eb-4f05-8187-6cedf95827c7", "d2d1e2e3213d4320bc2712a684307831", "1750f5b9848d4a6492c1c20b487074da")
|
||||
api = New("4d0c707a-54eb-4f05-8187-6cedf95827c7", "d2d1e2e3213d4320bc2712a684307831", "1750f5b9848d4a6492c1c20b487074da")
|
||||
// 390558
|
||||
//api = New("9053e4fd-4e0e-4e9e-8ab1-f348e5cbf3e7", "4602bd4b84984186815dbc03299c7094", "386ab19719d9470487011217d0c57349")
|
||||
|
||||
|
||||
@@ -79,12 +79,13 @@ func TestQueryChildCategoriesForOP(t *testing.T) {
|
||||
func TestDelete(t *testing.T) {
|
||||
var searchAfterSkuId string = ""
|
||||
for i := 0; i < 130; i++ {
|
||||
globals.SugarLogger.Debugf("----i:= %d", i)
|
||||
idList, afterSkuId, err := api.AuerySkuInfoList(int64(i), 20, searchAfterSkuId)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("--------err:%v", err)
|
||||
return
|
||||
}
|
||||
time.Sleep(time.Second * 5)
|
||||
time.Sleep(time.Second * 1)
|
||||
searchAfterSkuId = utils.Int64ToStr(afterSkuId)
|
||||
if len(idList) != 0 {
|
||||
globals.SugarLogger.Debugf("------len := %d", len(idList))
|
||||
|
||||
@@ -349,7 +349,9 @@ func (a *API) AuerySkuInfoList(pageNo, pageSize int64, searchAfterSkuId string)
|
||||
return nil, 0, err
|
||||
}
|
||||
skuList := data.(map[string]interface{})["result"]
|
||||
|
||||
if skuList == nil {
|
||||
return nil, 0, nil
|
||||
}
|
||||
sku := make([]*JDSkuList, 0, 0)
|
||||
json.Unmarshal([]byte(skuList.(string)), &sku)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user