fix: GetStepCacheData

This commit is contained in:
lilong.129
2023-05-04 13:06:57 +08:00
parent 70d0f666ea
commit ab8b5b133f
4 changed files with 36 additions and 17 deletions

View File

@@ -38,7 +38,7 @@
1,
1
],
"target": 2,
"target": 1,
"text": "^广告$"
},
{
@@ -49,6 +49,7 @@
1,
1
],
"target": 1,
"text": "^图文$"
},
{

View File

@@ -25,8 +25,8 @@ func TestAndroidVideoCrawlerTest(t *testing.T) {
"feed": map[string]interface{}{
"target_count": 5,
"target_labels": []map[string]interface{}{
{"text": "^广告$", "scope": []float64{0, 0.5, 1, 1}, "regex": true, "target": 2},
{"text": "^图文$", "scope": []float64{0, 0.5, 1, 1}, "regex": true},
{"text": "^广告$", "scope": []float64{0, 0.5, 1, 1}, "regex": true, "target": 1},
{"text": "^图文$", "scope": []float64{0, 0.5, 1, 1}, "regex": true, "target": 1},
{"text": `^特效\|`, "scope": []float64{0, 0.5, 1, 1}, "regex": true},
{"text": `^模板\|`, "scope": []float64{0, 0.5, 1, 1}, "regex": true},
{"text": `^购物\|`, "scope": []float64{0, 0.5, 1, 1}, "regex": true},