This commit is contained in:
邹宗楠
2026-03-25 09:13:07 +08:00
parent 93bd28290d
commit c740630ce6
31 changed files with 2077 additions and 556 deletions

View File

@@ -293,11 +293,17 @@ func TestRetailInitData(t *testing.T) {
i := 0
for {
// 同步商品
fromFoodList, err1 := api.RetailListAll("31897630", i)
fromFoodList, err1 := api.RetailListAll("21494359", i)
if len(fromFoodList) == 0 || fromFoodList == nil {
fmt.Println(fmt.Errorf("fromFoodList 为空 %s ,i:= %d", utils.Format4Output(err1, false), i))
return
}
for _, v := range fromFoodList {
fmt.Println(fmt.Sprintf("%s:%s", v.Name, strings.ReplaceAll(v.Picture, " ", "")))
}
if len(fromFoodList) < 100 {
fmt.Println(len(fromFoodList))
break