1
This commit is contained in:
@@ -312,10 +312,6 @@ func (a *API) GetSkuDetailLocalID(vendorStoreId, outProductId string) (*product_
|
||||
param.StoreId = utils.Str2Int64(vendorStoreId)
|
||||
|
||||
result, err := request.Execute(a.accessTokenObj)
|
||||
if strings.Contains(result.SubMsg, "未找到或商品已删除") {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -323,7 +319,7 @@ func (a *API) GetSkuDetailLocalID(vendorStoreId, outProductId string) (*product_
|
||||
return nil, errors.New(result.SubMsg + ":" + result.LogId)
|
||||
}
|
||||
if result.Data.Status == 2 {
|
||||
return nil, nil
|
||||
return nil, fmt.Errorf("商品已经删除")
|
||||
}
|
||||
|
||||
return result.Data, nil
|
||||
|
||||
Reference in New Issue
Block a user