包邮
This commit is contained in:
@@ -206,30 +206,34 @@ func TestShopList(t *testing.T) {
|
||||
func TestWareSave(t *testing.T) {
|
||||
// desc := `<p>因生鲜比较脆弱,发货途中如果有磕碰损坏,请收到联系客服,闪电赔付。请核对好地址,发货后不可修改地址,因改地址导致损坏不能赔付,谢谢理解</p><p><img style="width:auto;height:auto;max-width:100%;" src="//img10.360buyimg.com/imgzone/jfs/t1/126814/22/1326/472568/5ebb888dEa2cfb5f6/c0c81db660994246.jpg"><br></p><p><br></p>`
|
||||
params := &WareSaveParam{
|
||||
WareID: 10020528071531,
|
||||
Height: 120,
|
||||
CategoryID: 12247,
|
||||
VenderID: 10569615,
|
||||
BrandID: 44259,
|
||||
Length: 200,
|
||||
Wide: 100,
|
||||
// WareStatus: 2,
|
||||
Title: "三线肉测试2",
|
||||
Weight: "3",
|
||||
ShopCategorys: []int{15602360},
|
||||
// Notes: desc,
|
||||
WareID: 0,
|
||||
Height: 100,
|
||||
CategoryID: 13574,
|
||||
LastCategoryID: 13574,
|
||||
VenderID: 10569615,
|
||||
BrandID: 44259,
|
||||
Length: 200,
|
||||
Wide: 100,
|
||||
WareStatus: 8,
|
||||
Title: "散养土鸡蛋新鲜鸡蛋草鸡蛋柴鸡蛋顺丰包邮测试",
|
||||
Weight: "1",
|
||||
ShopCategorys: []int{15602325},
|
||||
Notes: `
|
||||
<p><img src="//img10.360buyimg.com/imgzone/jfs/t1/152741/14/7416/273609/5fbf645aEa1f7d6b7/dc1d9d997fe346b7.jpg" style="width: auto; height: auto; max-width: 100%;"><br></p><p><br></p>
|
||||
`,
|
||||
Skus: []*WareSaveSkus{
|
||||
&WareSaveSkus{
|
||||
SkuID: 10024685331653,
|
||||
JdPrice: "15",
|
||||
StockNum: 5,
|
||||
// SkuID: 10024685331653,
|
||||
JdPrice: "25",
|
||||
StockNum: 9999,
|
||||
Props: []*WareSaveSkusProp{
|
||||
&WareSaveSkusProp{
|
||||
AttrID: 1000022043,
|
||||
AttrValues: 2515313135,
|
||||
AttrValueAlias: "250g",
|
||||
AttrID: 1001027603,
|
||||
AttrValues: 2517633718,
|
||||
AttrValueAlias: "20个",
|
||||
},
|
||||
},
|
||||
OuterID: "6045735",
|
||||
},
|
||||
// &WareSaveSkus{
|
||||
// JdPrice: "31",
|
||||
@@ -243,17 +247,24 @@ func TestWareSave(t *testing.T) {
|
||||
// },
|
||||
// },
|
||||
},
|
||||
PromiseID: -1,
|
||||
MultiCateProps: []interface{}{},
|
||||
PropsSet: []interface{}{},
|
||||
SaleAttrs: []interface{}{},
|
||||
PromiseID: 0,
|
||||
MultiCateProps: []interface{}{},
|
||||
PropsSet: []interface{}{},
|
||||
SaleAttrs: []interface{}{},
|
||||
TransparentImageAudit: []interface{}{},
|
||||
OptionType: 1,
|
||||
AvailableFeatures: []interface{}{},
|
||||
CharacteristicService: []interface{}{},
|
||||
ExtendFeatures: []interface{}{},
|
||||
TempID: "10569615110055200", //必须要这个东西,不知道是啥
|
||||
}
|
||||
// params.ImageMap.Num0000000000 = append(params.ImageMap.Num0000000000, &CreateSkuParamImages{
|
||||
// ColorID: "0000000000",
|
||||
// ImgIndex: 1,
|
||||
// ImgURL: "jfs/t1/142006/30/15024/504060/5fb636d4Ef12079f7/2adad323cbcf7c52.jpg",
|
||||
// // ImgZoneID: "0000000000",
|
||||
// }, &CreateSkuParamImages{
|
||||
params.ImageMap.Num0000000000 = append(params.ImageMap.Num0000000000, &CreateSkuParamImages{
|
||||
ColorID: "0000000000",
|
||||
ImgIndex: 1,
|
||||
ImgURL: "jfs/t1/149724/17/15786/39416/5fbf645aE948e4d7a/b13bcaee129676b2.jpg",
|
||||
// ImgZoneID: "0000000000",
|
||||
})
|
||||
// , &CreateSkuParamImages{
|
||||
// ColorID: "0000000000",
|
||||
// ImgIndex: 2,
|
||||
// ImgURL: "jfs/t1/142006/30/15024/504060/5fb636d4Ef12079f7/2adad323cbcf7c52.jpg",
|
||||
@@ -267,7 +278,7 @@ func TestWareSave(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestWareDoUpdate(t *testing.T) {
|
||||
err := api.WareDoUpdate("up", "10020528071531")
|
||||
err := api.WareDoUpdate("up", "10020536451427")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user