1
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
// "authority_id": ""
|
||||
//}`
|
||||
|
||||
var token = `{"access_token":"84b9ab00-68d0-4b9f-9682-a03f75eaed95","expires_in":1672634978,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"44b1e11e-90a0-4876-b5f9-edd2bf5820e8","authority_id":""}`
|
||||
var token = `{"access_token":"adea9f19-9f8d-4656-8eb3-03c91385252f","expires_in":1673237952,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"ab14e321-1a68-405c-b904-7c4c14222c58","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":""}`
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ import (
|
||||
superm_product_batchRedistributeStoreProduct_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/superm_product_batchRedistributeStoreProduct/request"
|
||||
superm_product_createSubProduct_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/superm_product_createSubProduct/request"
|
||||
superm_product_launchProduct_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/superm_product_launchProduct/request"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"strings"
|
||||
)
|
||||
@@ -502,6 +503,7 @@ func (a *API) CreateSubProduct(mainProductId int64, storeId int64) (int64, error
|
||||
}
|
||||
|
||||
if result.Code != RequestSuccessCode {
|
||||
globals.SugarLogger.Debugf("=CreateSubProduct logID ========= %s", utils.Format4Output(result, false))
|
||||
return 0, errors.New(result.SubMsg)
|
||||
}
|
||||
|
||||
|
||||
@@ -62,17 +62,10 @@ func TestGetSkuDetailLocalId(t *testing.T) {
|
||||
|
||||
func TestUpdateSkuStore(t *testing.T) {
|
||||
err := a.UpdateSkuStock(&sku_syncStock_request.SkuSyncStockParam{
|
||||
SkuId: 1747916594479148,
|
||||
ProductId: 3579733194175557759,
|
||||
OutProductId: 0,
|
||||
Incremental: false,
|
||||
IdempotentId: "",
|
||||
StockNum: 2,
|
||||
OutWarehouseId: "65402632",
|
||||
Code: "",
|
||||
OutSkuId: 0,
|
||||
SupplierId: "",
|
||||
StepStockNum: 0,
|
||||
ProductId: 3592147984177100181,
|
||||
OutSkuId: 29170,
|
||||
StockNum: 2,
|
||||
Incremental: false,
|
||||
})
|
||||
fmt.Println(err)
|
||||
}
|
||||
@@ -149,12 +142,13 @@ func TestBatchDecrypt(t *testing.T) {
|
||||
// a.OrderUserInfoSensitive("4988354190732430566")
|
||||
//}
|
||||
|
||||
func TestGetSkuList(t *testing.T) {
|
||||
// 删除已经创建商品,重新同步
|
||||
func TestDeleteSkuAndUploadSku(t *testing.T) {
|
||||
var errList = make([]error, 0, 0)
|
||||
for i := 1; i < 100; i++ {
|
||||
result, err := a.GetSkuDetailList(&product_listV2_request.ProductListV2Param{
|
||||
Status: 0,
|
||||
CheckStatus: 4, // 1 2 3 4 5 7
|
||||
CheckStatus: 7, // 1 2 3 4 5 7
|
||||
ProductType: 0,
|
||||
StartTime: 0,
|
||||
EndTime: 0,
|
||||
@@ -162,7 +156,7 @@ func TestGetSkuList(t *testing.T) {
|
||||
Size: 100,
|
||||
UpdateStartTime: 0,
|
||||
UpdateEndTime: 0,
|
||||
StoreId: 63521394,
|
||||
StoreId: 63462817,
|
||||
})
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("=index := %d ,err := %s", i, utils.Format4Output(err, false))
|
||||
|
||||
Reference in New Issue
Block a user