This commit is contained in:
苏尹岚
2021-03-23 16:51:12 +08:00
parent 27124ecdbd
commit 92421e653a
6 changed files with 1168 additions and 17 deletions

View File

@@ -151,10 +151,108 @@ func TestAddShopCategory(t *testing.T) {
}
func TestDelShopCategory(t *testing.T) {
err := api.DelShopCategory(5259045)
if err != nil {
t.Fatal(err)
map1 := map[string][][]string{
"363436": [][]string{
[]string{
"b922658a-8f07-4932-a616-6a4b5347cf0a", "b5e6b41babba4743ab9c0896b9c6003f", "6511abe10f28405081e4f5a351457c22",
},
[]string{
"5492150",
"5492148",
"5492146",
},
},
"363558": [][]string{
[]string{
"c91173f4-567b-4bc9-a1e3-a1608407ec9d", "349b0b2156de4fd1adec4f34a5ca7247", "bee0d13695e64d13bb93ac9d50b95f94",
},
[]string{
"5490060",
"5490053",
"5490056",
},
},
"363701": [][]string{
[]string{
"3e21445d-ac39-428e-866c-69dca7b95ddc", "2148e08b14444b73bb04ee8dae4217ac", "7f541ab195934c109b8eee7a56b6f58d",
},
[]string{
"5498539",
"5498535",
"5498536",
},
},
"363739": [][]string{
[]string{
"fdb687b1-8e0a-4072-b251-04ef6d7a1a92", "218c544106e84cb08cbeed186c0d5bac", "fdd384a632354f189abce33f5a32ea14",
},
[]string{
"5498692",
"5498688",
"5498689",
},
},
"363786": [][]string{
[]string{
"098c8550-cfe7-4820-91fa-1bbf63ed9b20", "a396d930904047738dc70b6d2eb54e2d", "262f4656f16a48ed94003a1f261cd7d3",
},
[]string{
"5499968",
"5499966",
"5499964",
},
},
"363788": [][]string{
[]string{
"9b78cbb9-b956-4820-9b2f-330daaed2828", "5ecd3d4b65b44c9f9f820af232110f20", "63b0d12d32734334bf8c95d43e396035",
},
[]string{
"5500121",
"5500123",
"5500120",
},
},
"363892": [][]string{
[]string{
"163a032f-72df-44c9-a405-b7675e68d2a6", "f40e9fc714e741359c8fc4f2a1ea9e59", "e486c09cfded4fe3a15ee1cff546155f",
},
[]string{
"5502844",
"5502840",
"5502842",
},
},
"363894": [][]string{
[]string{
"840b4a7c-5b9a-40fc-95e8-e53b56573565", "fbeeef71305c46f192979ca6a00d380c", "feeec4ccf24744d892c4e892f5978847",
},
[]string{
"5503000",
"5502996",
"5502997",
},
},
"363896": [][]string{
[]string{
"064ee734-e819-455b-b4c4-cc5ee21c6b2f", "ab938148ff0444eba773a7851029d082", "8f659292e639499ca41d39476fc9c2df",
},
[]string{
"5503152",
"5503150",
"5503151",
},
},
}
for _, v := range map1 {
apijd := New(v[0][0], v[0][1], v[0][2])
for _, vv := range v[1] {
apijd.DelShopCategory(utils.Str2Int64(vv))
}
}
// err := api.DelShopCategory(5496926)
// if err != nil {
// t.Fatal(err)
// }
}
func TestGetSkuSaleAttrName(t *testing.T) {