Skip to content

Commit

Permalink
抢购失败后 重新获取抢购连接
Browse files Browse the repository at this point in the history
  • Loading branch information
zqjzqj committed Jan 4, 2021
1 parent 1a9b1dc commit 524055e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions secKill/jdSecKill.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,11 @@ func (jsk *jdSecKill) Run() error {
jsk.WaitStart(),
chromedp.ActionFunc(func(ctx context.Context) error {
for i := 1; i <= jsk.Works; i++ {
logs.PrintlnInfo("创建线程:", i)
go func() {
logs.PrintlnInfo("创建线程:", i)
SecKillRE:
//提取抢购连接
jsk.FetchSecKillUrl()

SecKillRE:
//请求抢购连接,提交订单
err := jsk.ReqSubmitSecKillOrder()
if err != nil {
Expand Down

0 comments on commit 524055e

Please sign in to comment.