1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user