From 0226595ff0c0e9ab4b782c33ed86c767946df570 Mon Sep 17 00:00:00 2001 From: fatiao <515948292@qq.com> Date: Mon, 27 Oct 2025 14:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E5=83=8F=E9=BB=98=E8=AE=A4=E8=A7=A3?= =?UTF-8?q?=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/roserver/game/model/role_base.go | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/server/roserver/game/model/role_base.go b/server/roserver/game/model/role_base.go index 283f977..b092eed 100644 --- a/server/roserver/game/model/role_base.go +++ b/server/roserver/game/model/role_base.go @@ -368,8 +368,7 @@ func (this *RoleBase) AddRMB(st AddItemST, add bool) bool { return true } - -func (this *RoleBase)WriteMiaojuGoldLog() { +func (this *RoleBase) WriteMiaojuGoldLog() { goldLog := &MiaojuLogGold{ Properties: Gold{ Coin: int(this.roleBase.Rmb), @@ -563,13 +562,13 @@ func (this *RoleBase) AddCommonRes(resType int32, st AddItemST, add bool) bool { return true } -//写妙聚日志 -func (this *RoleBase)WriteMiaojuPayLog(amount, oldVal float32) { +// 写妙聚日志 +func (this *RoleBase) WriteMiaojuPayLog(amount, oldVal float32) { if oldVal == 0 { //首冲只写一次 firstPayLog := &MiaojuLogFirstPay{ Properties: FirstPay{ - FirstPayTime:time.Unix(int64(util.GetTimeSeconds()), 0).Format(util.DATE_FORMAT), + FirstPayTime: time.Unix(int64(util.GetTimeSeconds()), 0).Format(util.DATE_FORMAT), }, } firstPayLog.OpenId = this.role.GetLunaAccount() @@ -583,7 +582,7 @@ func (this *RoleBase)WriteMiaojuPayLog(amount, oldVal float32) { //累计充值日志 totalPayLog := &MiaojuLogTotalPay{ Properties: TotalPay{ - TotalCharge:this.roleBase.TotalRecharge, + TotalCharge: this.roleBase.TotalRecharge, }, } totalPayLog.OpenId = this.role.GetLunaAccount() @@ -638,7 +637,7 @@ func (this *RoleBase) AddPayRecharge(payRewardInfo *serverproto.PayOrderSaveInfo this.role.GetRoleActivity().TaskCheck(serverproto.TaskType_Recharge_Num_Accu, int32(amount+0.5)) //超值礼包开启 this.role.GetRoleActivity().SuperChargeUnlockCheck(serverproto.UnlockChargeType_UChargeType_PayAmount, - &SuperChargeUnlockST{oldValue: int32(payRewardInfo.KrCur*100)}) + &SuperChargeUnlockST{oldValue: int32(payRewardInfo.KrCur * 100)}) } //gm方式充值 不写入数据库 @@ -983,7 +982,7 @@ func (this *RoleBase) AddBaseExp(st AddItemST) int32 { return changLevel } -func (this *RoleBase)WriteMiaojuLevelUpLog(roleLevel int32) { +func (this *RoleBase) WriteMiaojuLevelUpLog(roleLevel int32) { levelUpLog := &MiaojuLogLevelUp{ Properties: LevelUp{ RoleLevel: int(roleLevel), @@ -1828,12 +1827,13 @@ func (this *RoleBase) HeadFrameChangeNtf(headFrame []*serverproto.HeadFrameData) // 检查头像任务是否激活 func (this *RoleBase) CheckHeadUnlock(headId int32) bool { - for _, data := range this.roleBase.Head_Info.HeadList { - if data == headId { - return true - } - } - return false + //for _, data := range this.roleBase.Head_Info.HeadList { + // if data == headId { + // return true + // } + //} + //return false + return true } func (this *RoleBase) ChangeNameItemEnough(name string, remove bool) serverproto.ErrorCode { @@ -2024,7 +2024,7 @@ func (this *RoleBase) CheckVipLevelUp() { this.WriteMiaojuVipLevelLog() } } -func (this *RoleBase)WriteMiaojuVipLevelLog() { +func (this *RoleBase) WriteMiaojuVipLevelLog() { levelUpLog := &MiaojuLogVipLevel{ Properties: VipLevel{ VipLevel: int(this.role.GetRoleVipLevel()),