diff --git a/business/netspider/netspider.go b/business/netspider/netspider.go index 7885b67b4..61d635fac 100644 --- a/business/netspider/netspider.go +++ b/business/netspider/netspider.go @@ -152,8 +152,11 @@ func GetAndStoreCitiesShops(ctx *jxcontext.Context, vendorIDs []int, cityCodeLis if err2 := dao.GetRow(db, &lastShop, sql); err2 == nil { index := -1 for k, v := range cityCodeList { - if v == lastShop.CityCode { - index = k + 1 + if v >= lastShop.CityCode { + index = k + if v == lastShop.CityCode { + index++ + } if index >= len(cityCodeList) { index = -1 }