企业微信截图_936d1085-c23a-4d3f-adf9-4b3eef8900ee.png

image.png

image.png

if len(cities) == 2 { // 处理市级

            if currCity != utils.SimplifyCity(cities[0]) {
                el, err = frame1.ElementR(".city-box .dropdown-province li", utils.SimplifyCity(cities[0]))
                el.MustHover()
                el.MustClick()
                utils.Sleep()
                currCity = utils.SimplifyCity(cities[0])
            }

            utils.Sleep()

            el, err = frame1.ElementR(".city-box .dropdown-city li", utils.SimplifyCity(cities[1]))
            if err != nil {
                runtime.LogErrorf(ctx, "error:%+v", err)
                return
            }

            el.MustHover()
            el.MustClick()
        }

安小下同学
3.2k 声望1.9k 粉丝

正直、坦诚