From 17ffc17aa6f442c8986870e3ec86e5f997d57561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 13 Apr 2023 10:33:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BE=8E=E5=A5=BD=E8=8F=9C?= =?UTF-8?q?=E5=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/tiktok_shop/tiktok_api/afs_test.go | 2 +- platformapi/tiktok_shop/tiktok_api/sku_type.go | 2 ++ platformapi/tiktok_shop/tiktok_api/sku_warehouse.go | 2 ++ platformapi/tiktok_shop/tiktok_api/sku_warehouse_test.go | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/platformapi/tiktok_shop/tiktok_api/afs_test.go b/platformapi/tiktok_shop/tiktok_api/afs_test.go index 7660e0c8..c500bbca 100644 --- a/platformapi/tiktok_shop/tiktok_api/afs_test.go +++ b/platformapi/tiktok_shop/tiktok_api/afs_test.go @@ -18,7 +18,7 @@ import ( // "authority_id": "" //}` -var token = `{"access_token":"b558d5bd-d55d-4322-8602-85ba449cbc79","expires_in":1681667840,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"3a3c0ad2-bcbd-4f55-b7af-6b406dabc47a","authority_id":""}` +var token = `{"access_token":"58264f66-1417-455c-ab52-57254ebeae55","expires_in":1681371082,"scope":"SCOPE","shop_id":68032645,"shop_name":"美好菜市","refresh_token":"edc684c0-a7ef-44e0-afdc-1d61689667c3","authority_id":""}` //var token = `{"access_token":"e3173e9f-266f-4d87-88e7-e7cd837bc9d9","expires_in":1672882632,"scope":"SCOPE","shop_id":68023619,"shop_name":"京西到家","refresh_token":"5070aae2-493f-46bd-b5d6-6ea0cd64729f","authority_id":""}` diff --git a/platformapi/tiktok_shop/tiktok_api/sku_type.go b/platformapi/tiktok_shop/tiktok_api/sku_type.go index b67e0953..61c4e8e1 100644 --- a/platformapi/tiktok_shop/tiktok_api/sku_type.go +++ b/platformapi/tiktok_shop/tiktok_api/sku_type.go @@ -10,10 +10,12 @@ const ( TiktokFolder1 = "71847620611255503751570" // 文件夹(京西菜市) TiktokFolder2 = "71482723234545339291960" TiktokFolder3 = "71762017122139835211688" // (方案二测试文件夹) + TiktokFolder4 = "72213403043425651541645" // (美好菜市) TiktokShoppingFolder = "71802347591117703711619" // (方案二测试文件夹) TiktokFloderKeyVegetableKey = 57939570 // (菜市的文件夹id) TiktokFloderKeyShoppingKey = 68023619 // (商超账号的文件夹id) TiktokFloderKeyTestKey = 63141688 // (测试账号) + TiktokFloderKeyBeautifulKey = 68032645 // (美好菜市) ) // 商品减库存类型 diff --git a/platformapi/tiktok_shop/tiktok_api/sku_warehouse.go b/platformapi/tiktok_shop/tiktok_api/sku_warehouse.go index 0df2b753..ffc2714e 100644 --- a/platformapi/tiktok_shop/tiktok_api/sku_warehouse.go +++ b/platformapi/tiktok_shop/tiktok_api/sku_warehouse.go @@ -55,6 +55,8 @@ func (a *API) BatchUploadImages(imgs []Imgs) (map[string]material_batchUploadIma img.FolderId = TiktokShoppingFolder case TiktokFloderKeyVegetableKey: img.FolderId = TiktokFolder1 + case TiktokFloderKeyBeautifulKey: + img.FolderId = TiktokFolder4 } param = append(param, img) } diff --git a/platformapi/tiktok_shop/tiktok_api/sku_warehouse_test.go b/platformapi/tiktok_shop/tiktok_api/sku_warehouse_test.go index 734cc2f6..26f13c7b 100644 --- a/platformapi/tiktok_shop/tiktok_api/sku_warehouse_test.go +++ b/platformapi/tiktok_shop/tiktok_api/sku_warehouse_test.go @@ -24,7 +24,7 @@ func init() { } func TestCreateFolad(t *testing.T) { - data, err := a.CreateFolder("京西菜市图片文件库2") + data, err := a.CreateFolder("美好菜市图片文件") fmt.Println("err=====", err) fmt.Println("LogId====", data.LogId) //2022092811422001020812109607601B77 fmt.Println("data====", data.Data.Name) // jxcs_folder