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