[skip ci][内容]

1.修复部分空指针问题
2.修改go.mod
This commit is contained in:
MetaCubeX
2022-03-19 22:27:22 +08:00
parent e67f94b87a
commit 2d1c031ce0
8 changed files with 32 additions and 19 deletions

View File

@@ -6,7 +6,7 @@ import (
)
type AND struct {
common.Base
*common.Base
rules []C.Rule
payload string
adapter string
@@ -18,7 +18,7 @@ func (A *AND) ShouldFindProcess() bool {
}
func NewAND(payload string, adapter string) (*AND, error) {
and := &AND{payload: payload, adapter: adapter}
and := &AND{Base: &common.Base{}, payload: payload, adapter: adapter}
rules, err := parseRuleByPayload(payload)
if err != nil {
return nil, err