[fix] g 参数未初始化错误
This commit is contained in:
+1
-1
@@ -204,5 +204,5 @@ func (this *Engine[T]) Execute(data T) error {
|
||||
}
|
||||
|
||||
func New[T any](table string, relations ...string) *Engine[T] {
|
||||
return &Engine[T]{code: table, relations: relations}
|
||||
return &Engine[T]{code: table, relations: relations, g: support.NewGlobalParam("", nil)}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user