This commit is contained in:
邹宗楠
2022-10-28 09:47:09 +08:00
parent 0bf395b8b6
commit 9f90185c82
2 changed files with 4 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ func TestQueryOrderDetail(t *testing.T) {
}
func TestRefaseToken(t *testing.T) {
a.CreateToken("4e66a277-b6f9-4f4b-ab4c-f3d43d1fd85e")
a.CreateToken("5497af2f-eff3-4d70-bb32-60544b8102bb")
//a.RefreshToken()
// {"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":""}
//{"access_token":"37f41ac7-49ac-4848-a0ee-ea86bb0dfd9f","expires_in":519389,"scope":"SCOPE","shop_id":"","shop_name":"抖店开放平台测试专用店","refresh_token":"3dd8f638-fdf1-46e7-b974-88df382f03c6","authority_id" :""}

View File

@@ -234,16 +234,14 @@ func TestGetSkuDetailLocalId(t *testing.T) {
}
func TestUpdateSkuStore(t *testing.T) {
accesstoken := `{"access_token":"60f530b2-9ab6-4723-b487-c094918f0d21","expires_in":1666257163,"scope":"SCOPE","shop_id":"","shop_name":"小时达开放平台对接专用店","refresh_token":"1220666a-5e88-458c-a8c0-06d949fbbd3f","authority_id":""}`
a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", accesstoken)
err := a.UpdateSkuStock(&sku_syncStock_request.SkuSyncStockParam{
SkuId: 1746278107578416,
ProductId: 3576377564144516403,
SkuId: 1747647316908071,
ProductId: 3579181713974249764,
//OutProductId: 8076827,
Incremental: false,
IdempotentId: "",
StockNum: 100,
OutWarehouseId: "63114504",
OutWarehouseId: "65402632",
})
fmt.Println(err)
}