mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-24 12:11:52 +08:00
fix: handle encoded POC set values
This commit is contained in:
@@ -21,6 +21,10 @@ func registerMiscDeclarations() []*exprpb.Decl {
|
||||
decls.NewOverload("tongda_date",
|
||||
[]*exprpb.Type{},
|
||||
decls.String)),
|
||||
decls.NewFunction("timestamp_second",
|
||||
decls.NewOverload("timestamp_second_zero",
|
||||
[]*exprpb.Type{},
|
||||
decls.Int)),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,5 +51,11 @@ func registerMiscImplementations() []*functions.Overload {
|
||||
return types.String(time.Now().Format("0601"))
|
||||
},
|
||||
},
|
||||
{
|
||||
Operator: "timestamp_second_zero",
|
||||
Function: func(value ...ref.Val) ref.Val {
|
||||
return types.Int(time.Now().Unix())
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user