This commit is contained in:
邹宗楠
2025-03-17 13:46:55 +08:00
parent bdcc7b25f2
commit b308322826
5 changed files with 57 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ func TestSkuList(t *testing.T) {
PageSize: 100,
SkuIdOffset: skuIdOffset,
}
foodList, err := api.SkuList(utils.Int2Str(102778), param)
foodList, err := api.SkuList(utils.Int2Str(100002), param)
if err != nil {
break
}

View File

@@ -6,7 +6,7 @@ import (
)
func TestSkuCategoryList(t *testing.T) {
result, err := api.SkuCategoryList("白菜", 1, 0)
result, err := api.SkuCategoryList("巧福娃 香辣味麻酱大宽粉 30克/袋", 1, 0)
if err != nil {
t.Fatal(err)
} else {

View File

@@ -26,7 +26,7 @@ func init() {
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_ouN_SJj1m7HALrIdnQFHlQ")
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_hGnQOvCSkfrCOXFLHA1NMQ")
//cookieStr := `
// acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
//`

File diff suppressed because one or more lines are too long

View File

@@ -27,7 +27,7 @@ func TestRetailCatUpdate(t *testing.T) {
// 测试获取门店分类列表
func TestRetailCatList(t *testing.T) {
result, err := api.RetailCatList("19696163")
result, err := api.RetailCatList("26242063")
if err != nil {
t.Fatal(err)
}
@@ -239,7 +239,7 @@ func TestBatchSetPrice(t *testing.T) {
}
func TestRetailDelete(t *testing.T) {
poiCode := "9206018"
poiCode := "26242063"
i := 0
count := 0