更新持久化act更新语法

This commit is contained in:
ayflying
2025-08-27 09:57:45 +08:00
parent e781e132ed
commit 14c9308063

View File

@@ -213,9 +213,8 @@ func (s *sGameAct) Save(ctx context.Context, actId int) (err error) {
for _, v := range update {
v.UpdatedAt = gtime.Now()
_, err2 := g.Model(Name).Where(do.GameAct{
Uid: v.Uid,
ActId: v.ActId,
UpdatedAt: v.UpdatedAt,
Uid: v.Uid,
ActId: v.ActId,
}).Data(v).Update()
if err2 != nil {
g.Log().Error(ctx, err2)