Browse Source

Merge pull request #50 from wchen9/jdeidfix

fix eid and fp acquirement
main
ztino 3 years ago
committed by GitHub
parent
commit
b4d580247c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cmd/jdTdudfp.go

4
cmd/jdTdudfp.go

@ -59,6 +59,8 @@ func startJdTdudfp(cmd *cobra.Command, args []string) {
//商品链接
good_url,_:=cmd.Flags().GetString("good_url")
eid := ""
fp := ""
var res []byte
err = chromedp.Run(ctx,
@ -88,6 +90,8 @@ func startJdTdudfp(cmd *cobra.Command, args []string) {
chromedp.Click(".common-submit-btn"),
chromedp.Sleep(3 * time.Second),
chromedp.Evaluate("_JdTdudfp", &res),
chromedp.Evaluate("_JdEid", &eid),
chromedp.Evaluate("_JdJrTdRiskFpInfo", &fp),
)
if err != nil {
log.Println("chromedp 出错了")

Loading…
Cancel
Save