Merge branch 'master' of https://e.coding.net/rosydev/baseapi
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
package ascription_place
|
package ascription_place
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAscriptionPlace(t *testing.T) {
|
func TestAscriptionPlace(t *testing.T) {
|
||||||
//p, err := Find("18744776542")
|
p, err := Find("15184316052")
|
||||||
//fmt.Println(p)
|
fmt.Println(p)
|
||||||
//fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import (
|
|||||||
// "authority_id": ""
|
// "authority_id": ""
|
||||||
//}`
|
//}`
|
||||||
|
|
||||||
var token = `{"access_token":"26a0ee33-fca9-4b80-980a-3d6cf48ca159","expires_in":1678656378,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"ef12dcb4-766d-4e6b-905d-448a25279431","authority_id":""}`
|
var token = `{"access_token":"c2e78f4f-fb23-4729-b9b1-8330209df50b","expires_in":1679259342,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"83548fb9-d9ea-4665-bd8c-4dbb949338de","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":""}`
|
||||||
|
|
||||||
|
|||||||
@@ -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_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_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"
|
superm_product_launchProduct_request "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/superm_product_launchProduct/request"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -171,6 +172,9 @@ func (a *API) EditStoreCommodityCommit(sku *product_editV2_commit_request.Produc
|
|||||||
|
|
||||||
// DeleteStoreCommodity 删除商品
|
// DeleteStoreCommodity 删除商品
|
||||||
func (a *API) DeleteStoreCommodity(productId int64) error {
|
func (a *API) DeleteStoreCommodity(productId int64) error {
|
||||||
|
globals.SugarLogger.Debugf("----打印看看是否是定时任务删除:%d", productId)
|
||||||
|
return nil
|
||||||
|
|
||||||
request := product_del_request.New()
|
request := product_del_request.New()
|
||||||
param := request.GetParams()
|
param := request.GetParams()
|
||||||
param.ProductId = productId
|
param.ProductId = productId
|
||||||
|
|||||||
@@ -62,8 +62,8 @@ func TestGetSkuDetailLocalId(t *testing.T) {
|
|||||||
|
|
||||||
func TestUpdateSkuStore(t *testing.T) {
|
func TestUpdateSkuStore(t *testing.T) {
|
||||||
err := a.UpdateSkuStock(&sku_syncStock_request.SkuSyncStockParam{
|
err := a.UpdateSkuStock(&sku_syncStock_request.SkuSyncStockParam{
|
||||||
ProductId: 3592147984177100181,
|
ProductId: 3605142143867471418,
|
||||||
OutSkuId: 29170,
|
OutSkuId: 6045168,
|
||||||
StockNum: 2,
|
StockNum: 2,
|
||||||
Incremental: false,
|
Incremental: false,
|
||||||
})
|
})
|
||||||
@@ -71,15 +71,10 @@ func TestUpdateSkuStore(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestEiduPrice(t *testing.T) {
|
func TestEiduPrice(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)
|
|
||||||
err := a.EditPrice(&sku_editPrice_request.SkuEditPriceParam{
|
err := a.EditPrice(&sku_editPrice_request.SkuEditPriceParam{
|
||||||
Price: 500,
|
Price: 1000,
|
||||||
//Code: "",
|
SkuId: 1746278107578416,
|
||||||
SkuId: 1746278107578416,
|
ProductId: 3605159442921953230,
|
||||||
//OutSkuId: 0,
|
|
||||||
ProductId: 3576377564144516403,
|
|
||||||
//OutProductId: 0,
|
|
||||||
})
|
})
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
@@ -222,7 +217,7 @@ func TestDeleteSkuAndUploadSkuFengJinBiXu222(t *testing.T) {
|
|||||||
CheckStatus: 3, // 1-未提交;2-待审核;3-审核通过;4-审核未通过;5-封禁;7-审核通过待上架
|
CheckStatus: 3, // 1-未提交;2-待审核;3-审核通过;4-审核未通过;5-封禁;7-审核通过待上架
|
||||||
Page: int64(i),
|
Page: int64(i),
|
||||||
Size: 100,
|
Size: 100,
|
||||||
StoreId: 69395217,
|
StoreId: 63465423,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
globals.SugarLogger.Debugf("=index := %d ,err := %s", i, utils.Format4Output(err, false))
|
globals.SugarLogger.Debugf("=index := %d ,err := %s", i, utils.Format4Output(err, false))
|
||||||
|
|||||||
Reference in New Issue
Block a user