From a6af5c8ca6c4786a2d32056b545868a912f1d091 Mon Sep 17 00:00:00 2001 From: xinian Date: Thu, 12 Feb 2026 00:50:11 +0800 Subject: [PATCH] 1 --- modules/player/service/pet.go | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/modules/player/service/pet.go b/modules/player/service/pet.go index b1312391a..60d2210c7 100644 --- a/modules/player/service/pet.go +++ b/modules/player/service/pet.go @@ -6,8 +6,6 @@ import ( "blazing/modules/player/model" "context" "fmt" - - "github.com/gogf/gf/v2/util/gconv" ) // 获取精灵信息 0是仓库,1是放生 @@ -138,16 +136,16 @@ func (s *PetService) ModifyBefore(ctx context.Context, method string, param map[ admin := cool.GetAdmin(ctx) userId := admin.UserId s.userid = uint32(userId) - if method == "Update" { + // if method == "Update" { - if gconv.Uint(param["free"]) != 0 { - err = fmt.Errorf("修改失败") - } - if userId != gconv.Uint(param["player_id"]) { - err = fmt.Errorf("修改失败") - } + // if gconv.Uint(param["free"]) != 0 { + // err = fmt.Errorf("修改失败") + // } + // if userId != gconv.Uint(param["player_id"]) { + // err = fmt.Errorf("修改失败") + // } - } + // } return }