mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
规则引擎
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -8,6 +8,8 @@
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
||||
*.git
|
||||
|
||||
/fatal
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
1
.idea/vcs.xml
generated
1
.idea/vcs.xml
generated
@@ -2,5 +2,6 @@
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/pkg/rule_engine" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -114,6 +114,7 @@ func (m *ruleChainModelImpl) FindListBaseLabel(data entity.RuleChain) *[]entity.
|
||||
}
|
||||
|
||||
func (m *ruleChainModelImpl) Update(data entity.RuleChain) *entity.RuleChain {
|
||||
//更改本地规则链缓存
|
||||
if data.RuleDataJson != "" {
|
||||
go global.EventEmitter.Emit(events.ProductChainRuleEvent, data.Id, data.RuleDataJson)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user