diff --git a/modules/player/service/pet.go b/modules/player/service/pet.go index 60d2210c7..f858448da 100644 --- a/modules/player/service/pet.go +++ b/modules/player/service/pet.go @@ -132,23 +132,23 @@ RETURNING max_ts; } } -func (s *PetService) ModifyBefore(ctx context.Context, method string, param map[string]interface{}) (err error) { - admin := cool.GetAdmin(ctx) - userId := admin.UserId - s.userid = uint32(userId) - // if method == "Update" { +// func (s *PetService) ModifyBefore(ctx context.Context, method string, param map[string]interface{}) (err error) { +// admin := cool.GetAdmin(ctx) +// userId := admin.UserId +// s.userid = uint32(userId) +// // 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 -} +// return +// } type PetService struct { BaseService