fix: genasset 导入 Update 用 .Ctx(ctx)(GoFrame Update 参数歧义)+ 计划同步
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -257,7 +257,7 @@ func importScripts(fl genFlags) {
|
||||
})
|
||||
}
|
||||
b2, _ := json.Marshal(lines)
|
||||
if _, err := g.DB().Model(consts.TableSceneNode).Data(g.Map{"script": string(b2)}).Where("id", d.NodeID).Update(ctx); err != nil {
|
||||
if _, err := g.DB().Model(consts.TableSceneNode).Ctx(ctx).Data(g.Map{"script": string(b2)}).Where("id", d.NodeID).Update(); err != nil {
|
||||
glog.Errorf(ctx, "[scripts] 导入失败 node %d: %v", d.NodeID, err)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user