This commit is contained in:
邹宗楠
2026-07-10 13:57:59 +08:00
parent 9054474ea0
commit 6aaf10c5a6
3 changed files with 5 additions and 5 deletions

View File

@@ -322,13 +322,13 @@ func (a *API) SkuList(shopID string, params *SkuListParams) (skuInfo *PageDataIn
} }
// 饿百商品名可以相同,不会报错 // 饿百商品名可以相同,不会报错
func (a *API) SkuCreate(trackInfo, shopID string, customSkuID int64, params map[string]interface{}) (skuID int64, err error) { func (a *API) SkuCreate(trackInfo, shopID string, customSkuID string, params map[string]interface{}) (skuID int64, err error) {
defParams := map[string]interface{}{ defParams := map[string]interface{}{
KeyShopID: shopID, KeyShopID: shopID,
KeyCustomSkuID: customSkuID, KeyCustomSkuID: customSkuID,
} }
if utils.IsNil(params["upc"]) { if utils.IsNil(params["upc"]) {
params["upc"] = "upc-" + utils.Int2Str(int(customSkuID)) params["upc"] = "upc-" + customSkuID
} }
/*if params["brand_id"] == nil { /*if params["brand_id"] == nil {
defParams["brand_id"] = 0 defParams["brand_id"] = 0

View File

@@ -19,13 +19,13 @@ func init() {
baseapi.Init(sugarLogger) baseapi.Init(sugarLogger)
// 菜市 // 菜市
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "") //api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
// 果园 // 果园
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "") //api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超 //商超
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_uVZfu5hlW_UZQiR_i1tL0Q") api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_oFtkFnZqmR7QtKUeqIpJ8Q")
//cookieStr := ` //cookieStr := `
// acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1; // acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
//` //`

View File

@@ -31,7 +31,7 @@ func getTimeFromTimestamp(timeStamp int64) time.Time {
} }
func TestOrderGetOrderDetail(t *testing.T) { func TestOrderGetOrderDetail(t *testing.T) {
result, err := api.OrderGetOrderDetail(3802193810228584437, false) result, err := api.OrderGetOrderDetail(2602201502045507987, false)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }