fengweiqiang 6 жил өмнө
parent
commit
da1fb26453

+ 0 - 1
src/jy/pretreated/analystep.go

@@ -6,7 +6,6 @@ package pretreated
 import (
 	"encoding/json"
 	"jy/util"
-	//"log"
 	"strings"
 
 	"github.com/PuerkitoBio/goquery"

+ 2 - 1
src/jy/pretreated/analytable.go

@@ -1037,7 +1037,8 @@ func (table *Table) FindTag() {
 	if table.Tag != "" {
 		return
 	}
-	t1, _ := table.Goquery.OuterHtml()
+	t1, _ := goquery.OuterHtml(table.Goquery)
+	//t1, _ := table.Goquery.OuterHtml()
 	html := table.Html
 	pos := strings.Index(html, t1)
 	if pos <= 0 {