diff --git a/platformapi/tiktok_shop/tiktok_api/sku_test.go b/platformapi/tiktok_shop/tiktok_api/sku_test.go index 46c0a80f..d6e7dfc1 100644 --- a/platformapi/tiktok_shop/tiktok_api/sku_test.go +++ b/platformapi/tiktok_shop/tiktok_api/sku_test.go @@ -312,12 +312,9 @@ func TestBatchDecrypt(t *testing.T) { //} func TestGetSkuList(t *testing.T) { - token := `{"access_token":"a1746210-a8a3-4497-a87b-09d1f10dbb95","expires_in":1665652230,"scope":"SCOPE","shop_id":"","shop_name":"小时达开放平台对接专用店","refresh_token":"c1cf8d88-0983-4f2a-b969-3746fae6b0cd","authority_id":""}` - - a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token) - a.GetSkuDetailList(&product_listV2_request.ProductListV2Param{ + result, err := a.GetSkuDetailList(&product_listV2_request.ProductListV2Param{ Status: 0, - CheckStatus: 0, + CheckStatus: 3, ProductType: 0, StartTime: 0, EndTime: 0, @@ -325,8 +322,13 @@ func TestGetSkuList(t *testing.T) { Size: 100, UpdateStartTime: 0, UpdateEndTime: 0, - //StoreId: 63114504, + //StoreId: 65402632, }) + + for _, v := range result.Data { + fmt.Println(fmt.Sprintf("mainid:[%d],outId:[%d],outerId:[%s]", v.ProductId, v.OutProductId, v.OuterProductId)) + } + globals.SugarLogger.Debugf("result:= %s", err) } func TestGetBrandId(t *testing.T) { @@ -336,4 +338,5 @@ func TestGetBrandId(t *testing.T) { func Test11111(t *testing.T) { fmt.Println((1 & 1) != 0) fmt.Println(1&2 == 0) + fmt.Println(200 / 100) }