添加美好菜市

This commit is contained in:
邹宗楠
2023-04-13 10:33:27 +08:00
parent 5038cbd52c
commit 17ffc17aa6
4 changed files with 6 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ import (
// "authority_id": "" // "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":""}` //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":""}`

View File

@@ -10,10 +10,12 @@ const (
TiktokFolder1 = "71847620611255503751570" // 文件夹(京西菜市) TiktokFolder1 = "71847620611255503751570" // 文件夹(京西菜市)
TiktokFolder2 = "71482723234545339291960" TiktokFolder2 = "71482723234545339291960"
TiktokFolder3 = "71762017122139835211688" // (方案二测试文件夹) TiktokFolder3 = "71762017122139835211688" // (方案二测试文件夹)
TiktokFolder4 = "72213403043425651541645" // (美好菜市)
TiktokShoppingFolder = "71802347591117703711619" // (方案二测试文件夹) TiktokShoppingFolder = "71802347591117703711619" // (方案二测试文件夹)
TiktokFloderKeyVegetableKey = 57939570 // (菜市的文件夹id) TiktokFloderKeyVegetableKey = 57939570 // (菜市的文件夹id)
TiktokFloderKeyShoppingKey = 68023619 // (商超账号的文件夹id) TiktokFloderKeyShoppingKey = 68023619 // (商超账号的文件夹id)
TiktokFloderKeyTestKey = 63141688 // (测试账号) TiktokFloderKeyTestKey = 63141688 // (测试账号)
TiktokFloderKeyBeautifulKey = 68032645 // (美好菜市)
) )
// 商品减库存类型 // 商品减库存类型

View File

@@ -55,6 +55,8 @@ func (a *API) BatchUploadImages(imgs []Imgs) (map[string]material_batchUploadIma
img.FolderId = TiktokShoppingFolder img.FolderId = TiktokShoppingFolder
case TiktokFloderKeyVegetableKey: case TiktokFloderKeyVegetableKey:
img.FolderId = TiktokFolder1 img.FolderId = TiktokFolder1
case TiktokFloderKeyBeautifulKey:
img.FolderId = TiktokFolder4
} }
param = append(param, img) param = append(param, img)
} }

View File

@@ -24,7 +24,7 @@ func init() {
} }
func TestCreateFolad(t *testing.T) { func TestCreateFolad(t *testing.T) {
data, err := a.CreateFolder("京西菜市图片文件库2") data, err := a.CreateFolder("美好菜市图片文件")
fmt.Println("err=====", err) fmt.Println("err=====", err)
fmt.Println("LogId====", data.LogId) //2022092811422001020812109607601B77 fmt.Println("LogId====", data.LogId) //2022092811422001020812109607601B77
fmt.Println("data====", data.Data.Name) // jxcs_folder fmt.Println("data====", data.Data.Name) // jxcs_folder