Skip to content

Commit

Permalink
更新时差提示bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zqjzqj committed Jan 5, 2021
1 parent 2b9d98d commit 468b027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions secKill/jdSecKill.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (jsk *jdSecKill) WaitStart() chromedp.ActionFunc {
logs.PrintlnInfo("时间到达。。。。开始执行")
break
}
logs.Println("时差:", global.UnixMilli() - jsk.DiffTime, "ms")
logs.Println("时差:", st - global.UnixMilli(), "ms")
time.Sleep(200 * time.Millisecond)
}
return nil
Expand All @@ -252,7 +252,7 @@ func (jsk *jdSecKill) GetEidAndFp() chromedp.ActionFunc {
return func(ctx context.Context) error {
RE:
logs.PrintlnInfo("正在获取eid和fp参数....")
_ = chromedp.Navigate("https://search.jd.com/Search?keyword=情趣内衣").Do(ctx)
_ = chromedp.Navigate("https://search.jd.com/Search?keyword=乌江榨菜").Do(ctx)
logs.PrintlnInfo("等待页面更新完成....")
_ = chromedp.WaitVisible(".gl-item").Do(ctx)
var itemNodes []*cdp.Node
Expand Down

0 comments on commit 468b027

Please sign in to comment.