自动生成支持新版
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package act{id}
|
package act{id}
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"game_server/internal/service"
|
service2 "github.com/ayflying/utility_go/service"
|
||||||
"github.com/gogf/gf/v2/os/gctx"
|
"github.com/gogf/gf/v2/os/gctx"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *sAct{id}) GetData(uid int64) (data *Data) {
|
func (s *sAct{id}) GetData(uid int64) (data *Data) {
|
||||||
get, _ := service.GameAct().Info(uid, ActId)
|
get, _ := service2.GameAct().Info(uid, ActId)
|
||||||
get.Scan(&data)
|
get.Scan(&data)
|
||||||
if get.IsEmpty() || get.IsNil() || data == nil {
|
if get.IsEmpty() || get.IsNil() || data == nil {
|
||||||
data = &Data{
|
data = &Data{
|
||||||
@@ -35,5 +35,5 @@ func (s *sAct{id}) GetData(uid int64) (data *Data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *sAct{id}) SetData(uid int64, data interface{}) {
|
func (s *sAct{id}) SetData(uid int64, data interface{}) {
|
||||||
service.GameAct().Set(uid, ActId, data)
|
service2.GameAct().Set(uid, ActId, data)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user