This commit is contained in:
邹宗楠
2025-03-24 15:40:21 +08:00
parent 2663099187
commit cf38acc037
12 changed files with 64 additions and 44 deletions

View File

@@ -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)
}