1
This commit is contained in:
@@ -60,17 +60,19 @@ func TestDelVipPrice(t *testing.T) {
|
||||
//}
|
||||
|
||||
func TestBatchUpdateVendibility(t *testing.T) {
|
||||
result, err := api.BatchUpdateVendibility("", "800302", "", []*StockVendibility{
|
||||
&StockVendibility{
|
||||
OutSkuId: "6042945",
|
||||
DoSale: true,
|
||||
},
|
||||
}, "test")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
data := []int64{1}
|
||||
for _, v := range data {
|
||||
_, err := api.BatchUpdateVendibility("liulei", "", "14986394", []*StockVendibility{
|
||||
&StockVendibility{
|
||||
OutSkuId: utils.Int64ToStr(v),
|
||||
DoSale: false,
|
||||
},
|
||||
}, "test")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
//baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestUpdateVendibility(t *testing.T) {
|
||||
@@ -172,3 +174,7 @@ func (t *Object2222) getParam(key string) int {
|
||||
func TestGetSkuList(t *testing.T) {
|
||||
api.AuerySkuInfoList(0, 100)
|
||||
}
|
||||
|
||||
func TestUnBindStoreGoods(t *testing.T) {
|
||||
api.UnBindStoreGoods(31985)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user