1
This commit is contained in:
@@ -44,6 +44,14 @@ func (c *ProductListV2Request) GetParams() *ProductListV2Param {
|
||||
return c.Param
|
||||
}
|
||||
|
||||
//草稿箱:status=0 and check_status=1 and draft_status=1或0
|
||||
//在售:status=0&&check_status=3
|
||||
//审核中:status=0 and check_status=2 and draft_status=2
|
||||
//新版本审核中:status=0 and check_status=3 and draft_status=2
|
||||
//封禁中:status=1 and check_status=5 and draft_status=0
|
||||
//上架的商品被下架放入仓库中:status=1 and check_status=1 and draft_status=0
|
||||
//延迟上架,放入仓库中(start_sale_type=1):status=1 and check_status=7 and draft_status=0
|
||||
//删除:status=2 and check_status=1 and draft_status=0
|
||||
type ProductListV2Param struct {
|
||||
// 商品在店铺中状态: 0-在线;1-下线;2-删除;详见商品状态机:https://op.jinritemai.com/docs/question-docs/92/2070
|
||||
Status int64 `json:"status"`
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
// 京西速食(蔬菜)
|
||||
var token1 = `{"access_token":"ntx7g036841j7t4nq1hehos0000yhugi-11","expires_in":1745854497,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市","refresh_token":"u2d0v1sjz11j7t4nq1hehos0000yhugi-12","authority_id":""}`
|
||||
var token1 = `{"access_token":"tb0o54fcco1j7t4nq1hehos0000yhugi-11","expires_in":1746456141,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市","refresh_token":"fep4bvr9yf1j7t4nq1hehos0000yhugi-12","authority_id":""}`
|
||||
|
||||
// 美好菜市
|
||||
//var token1 = `{"access_token":"9a315a03-c737-4a82-ae52-c9a6ce827007","expires_in":1699490747,"scope":"SCOPE","shop_id":68032645,"shop_name":"美好菜市","refresh_token":"8334c006-5301-4d25-911b-4d8cc7b70ebb","authority_id":""}`
|
||||
|
||||
@@ -174,7 +174,7 @@ func TestBatchDecrypt(t *testing.T) {
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
var c = []int64{190504428}
|
||||
var c = []int64{173965249}
|
||||
|
||||
// 删除已经创建商品,重新同步
|
||||
func TestDeleteSkuAndUploadSku(t *testing.T) {
|
||||
@@ -183,7 +183,8 @@ func TestDeleteSkuAndUploadSku(t *testing.T) {
|
||||
for _, v := range c {
|
||||
for i := 1; i < 100; i++ {
|
||||
result, err := a.GetSkuDetailList(&product_listV2_request.ProductListV2Param{
|
||||
CheckStatus: 4, // 1-未提交;2-待审核;3-审核通过;4-审核未通过;5-封禁;7-审核通过待上架
|
||||
Status: 1,
|
||||
CheckStatus: 1, // 1-未提交;2-待审核;3-审核通过;4-审核未通过;5-封禁;7-审核通过待上架
|
||||
Page: int64(i),
|
||||
Size: 100,
|
||||
StoreId: v,
|
||||
|
||||
Reference in New Issue
Block a user