- ebai key changed.

This commit is contained in:
gazebo
2018-10-08 08:25:34 +08:00
parent 58b6d6329d
commit 00cbc8f635
4 changed files with 27 additions and 11 deletions

View File

@@ -117,12 +117,11 @@ func (a *API) SkuCreate(shopID string, customSkuID int, params map[string]interf
KeyShopID: shopID,
"custom_sku_id": customSkuID,
"upc_type": UPCTypePrivate,
"upc": customSkuID,
"brand_name": "无", // 很狗血的是,你还必须填个无才行。。。
}
// if params["upc"] == nil {
// defParams["upc"] = "upc-" + utils.Int2Str(customSkuID)
// }
if params["upc"] == nil {
defParams["upc"] = "upc-" + utils.Int2Str(customSkuID)
}
if params["brand_id"] == nil {
defParams["brand_id"] = 0
}