+ purchase/jd/store_sku2_test.go
This commit is contained in:
33
business/partner/purchase/jd/store_sku2_test.go
Normal file
33
business/partner/purchase/jd/store_sku2_test.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package jd
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/partner/putils"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
)
|
||||
|
||||
func TestGetStoreSkusBareInfo(t *testing.T) {
|
||||
// list := []*partner.StoreSkuInfo{
|
||||
// &partner.StoreSkuInfo{
|
||||
// SkuID: 5246,
|
||||
// VendorSkuID: "2023747677",
|
||||
// },
|
||||
// }
|
||||
// for i := 0; i < 3000; i++ {
|
||||
// list = append(list, list[0])
|
||||
// }
|
||||
skuNameList, err := curPurchaseHandler.GetSkus(jxcontext.AdminCtx, 0, "", "")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
list := putils.StoreSkuFullList2Bare(skuNameList)
|
||||
storeSkuList, err := curPurchaseHandler.GetStoreSkusBareInfo(jxcontext.AdminCtx, nil, 2, "11053496", list)
|
||||
if err != nil {
|
||||
t.Fatal(err.Error())
|
||||
}
|
||||
t.Log(utils.Format4Output(storeSkuList, false))
|
||||
t.Log(len(storeSkuList))
|
||||
}
|
||||
Reference in New Issue
Block a user