TODO: extractor openrec
This commit is contained in:
@@ -1 +0,0 @@
|
||||
../../../config.yaml
|
||||
@@ -11,12 +11,10 @@ import (
|
||||
"github.com/tidwall/gjson"
|
||||
)
|
||||
|
||||
var targetTypeRanking = "openrec_ranking"
|
||||
var targetTypeUser = "openrec_user"
|
||||
var openrecRanking *OpenrecRanking
|
||||
|
||||
// store 源存储实例, 为存储源数据的实现. 表格具体参考sql/intimate_source.sql
|
||||
var store *intimate.Store = intimate.NewStore("source_openrec")
|
||||
var store *intimate.SourceStore = intimate.NewSourceStore(string(intimate.STOpenrec))
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -67,7 +65,7 @@ func (or *OpenrecRanking) Execute(cxt *hunter.TaskContext) {
|
||||
|
||||
data.SetSource(sql.NullString{String: userid, Valid: len(userid) > 0})
|
||||
data.SetUrl(wf.GetRawURL())
|
||||
data.SetTargetType(targetTypeUser)
|
||||
data.SetTargetType(string(intimate.TTOpenrecUser))
|
||||
store.Insert(data)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user