Skip to content

Commit

Permalink
新增浏览器执行路径参数
Browse files Browse the repository at this point in the history
  • Loading branch information
zqjzqj committed Jan 7, 2021
1 parent f889c6e commit 4448775
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ var skuId = flag.String("sku", "100012043978", "茅台商品ID")
var num = flag.Int("num", 2, "茅台商品ID")
var works = flag.Int("works", 7, "并发数")
var start = flag.String("time", "09:59:59", "开始时间---不带日期")

var brwoserPath = flag.String("execPath", "", "浏览器执行路径,路径不能有空格")
func init() {
flag.Parse()
}

func main() {
var err error
execPath := ""
if *brwoserPath != "" {
execPath = *brwoserPath
}
RE:
jdSecKill := secKill.NewJdSecKill(execPath, *skuId, *num, *works)
jdSecKill.StartTime, err = global.Hour2Unix(*start)
Expand Down

0 comments on commit 4448775

Please sign in to comment.