[fix] g 参数未初始化错误
This commit is contained in:
parent
b481cfe969
commit
2a97e48523
@ -204,5 +204,5 @@ func (this *Engine[T]) Execute(data T) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func New[T any](table string, relations ...string) *Engine[T] {
|
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)}
|
||||||
}
|
}
|
||||||
|
@ -11,5 +11,5 @@ func (this EngineParam) GetParam(k string) contracts.GlobalParams {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this EngineParam) GetGlobalParamsUser() contracts.User {
|
func (this EngineParam) GetGlobalParamsUser() contracts.User {
|
||||||
return nil
|
return this.data.User()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user