refactor: 移除冗余日志输出并优化日志处理
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -3,7 +3,6 @@ package service
|
||||
import (
|
||||
"blazing/cool"
|
||||
"blazing/modules/player/model"
|
||||
"context"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/util/gconv"
|
||||
@@ -27,7 +26,7 @@ func NewDoneService(id uint32) *DoneService {
|
||||
}
|
||||
|
||||
// ID
|
||||
// 击杀-捕捉
|
||||
// 击杀-捕捉
|
||||
func (s *DoneService) UpdatePet(ptye model.PetInfo, res ...uint32) {
|
||||
|
||||
//属性->属性值->ID 击杀-捕捉-炫彩击杀-炫彩捕捉 雄性 雌性
|
||||
@@ -51,7 +50,7 @@ func (s *DoneService) UpdatePet(ptye model.PetInfo, res ...uint32) {
|
||||
func (s *DoneService) update(ptye model.EnumMilestone, args []uint32, results []uint32) {
|
||||
|
||||
if cool.Config.ServerInfo.IsVip != 0 {
|
||||
cool.Logger.Info(context.TODO(), "测试服不消耗物品玩家数据", s.userid)
|
||||
|
||||
return
|
||||
}
|
||||
ar := gconv.String(args)
|
||||
|
||||
@@ -180,7 +180,6 @@ func (s *InfoService) Gensession() string {
|
||||
|
||||
func (s *InfoService) Kick(id uint32) error {
|
||||
|
||||
cool.Logger.Info(context.TODO(), "服务器收到踢人")
|
||||
useid1, err := share.ShareManager.GetUserOnline(id)
|
||||
|
||||
if err != nil {
|
||||
@@ -198,7 +197,6 @@ func (s *InfoService) Kick(id uint32) error {
|
||||
}
|
||||
func (s *InfoService) Save(data model.PlayerInfo) {
|
||||
if cool.Config.ServerInfo.IsVip != 0 {
|
||||
cool.Logger.Info(context.TODO(), "测试服不保存玩家数据", s.userid)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ func (s *ItemService) Get(min, max uint32) []model.Item {
|
||||
}
|
||||
func (s *ItemService) UPDATE(id uint32, count int) {
|
||||
if cool.Config.ServerInfo.IsVip != 0 && count < 0 {
|
||||
cool.Logger.Info(context.TODO(), "测试服不消耗物品玩家数据", s.userid)
|
||||
|
||||
return
|
||||
}
|
||||
m := s.TestModel(s.Model)
|
||||
|
||||
@@ -41,7 +41,7 @@ func (s *RoomService) Get(userid uint32) model.BaseHouseEx {
|
||||
func (s *RoomService) Set(id []model.FitmentShowInfo) {
|
||||
//todo待测试
|
||||
if cool.Config.ServerInfo.IsVip != 0 {
|
||||
cool.Logger.Info(context.TODO(), "测试服不消耗物品玩家数据", s.userid)
|
||||
|
||||
return
|
||||
}
|
||||
var ttt model.BaseHouseEx
|
||||
|
||||
@@ -4,7 +4,6 @@ import (
|
||||
"blazing/cool"
|
||||
config "blazing/modules/config/service"
|
||||
"blazing/modules/player/model"
|
||||
"context"
|
||||
)
|
||||
|
||||
type TalkService struct {
|
||||
@@ -54,7 +53,7 @@ func (s *TalkService) Cheak(mapid uint32, flag int) (int, bool) {
|
||||
}
|
||||
func (s *TalkService) Update(flag int) {
|
||||
if cool.Config.ServerInfo.IsVip != 0 {
|
||||
cool.Logger.Info(context.TODO(), "测试服不消耗物品玩家数据", s.userid)
|
||||
|
||||
return
|
||||
}
|
||||
m := s.PModel(s.Model).Where("talk_id", flag)
|
||||
|
||||
Reference in New Issue
Block a user