自动生成支持新版

This commit is contained in:
ayflying
2025-03-04 14:49:26 +08:00
parent 4bd9d101c7
commit 754fd11ad2

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)
}