Compare commits

...

2 Commits

Author SHA1 Message Date
ayflying
754fd11ad2 自动生成支持新版 2025-03-04 14:49:26 +08:00
ayflying
4bd9d101c7 更新其他库 2025-03-04 14:32:00 +08:00
3 changed files with 6 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
package act{id}
import (
"game_server/internal/service"
service2 "github.com/ayflying/utility_go/service"
"github.com/gogf/gf/v2/os/gctx"
)
@@ -25,7 +25,7 @@ func init() {
}
func (s *sAct{id}) GetData(uid int64) (data *Data) {
get, _ := service.GameAct().Info(uid, ActId)
get, _ := service2.GameAct().Info(uid, ActId)
get.Scan(&data)
if get.IsEmpty() || get.IsNil() || data == nil {
data = &Data{
@@ -35,5 +35,5 @@ func (s *sAct{id}) GetData(uid int64) (data *Data) {
}
func (s *sAct{id}) SetData(uid int64, data interface{}) {
service.GameAct().Set(uid, ActId, data)
service2.GameAct().Set(uid, ActId, data)
}

2
go.mod
View File

@@ -60,7 +60,7 @@ require (
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rs/xid v1.6.0 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.8.1 // indirect

2
go.sum
View File

@@ -308,6 +308,8 @@ github.com/spf13/afero v1.6.0 h1:xoax2sJ2DT8S8xA2paPFjDCScCNeWsg75VG0DLRreiY=
github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng=
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y=
github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=