1
This commit is contained in:
@@ -507,6 +507,7 @@ func (a *API) CreateSubProduct(mainProductId int64, storeId int64) (int64, error
|
|||||||
globals.SugarLogger.Debugf("=CreateSubProduct logID ========= %s", utils.Format4Output(result, false))
|
globals.SugarLogger.Debugf("=CreateSubProduct logID ========= %s", utils.Format4Output(result, false))
|
||||||
return 0, errors.New(result.SubMsg)
|
return 0, errors.New(result.SubMsg)
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("result CreateSubProduct %s", utils.Format4Output(result, false))
|
||||||
|
|
||||||
return result.Data.SubProductId, nil
|
return result.Data.SubProductId, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ func TestGetSkuDetail(t *testing.T) {
|
|||||||
|
|
||||||
// 查询商品详情本地商品id
|
// 查询商品详情本地商品id
|
||||||
func TestGetSkuDetailLocalId(t *testing.T) {
|
func TestGetSkuDetailLocalId(t *testing.T) {
|
||||||
data, err := a.GetSkuDetail("3592181392580198334", "")
|
data, err := a.GetSkuDetail("3592382914735826936", "")
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
globals.SugarLogger.Debugf("====%s", utils.Format4Output(data, false))
|
globals.SugarLogger.Debugf("====%s", utils.Format4Output(data, false))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user