头像默认解锁

This commit is contained in:
fatiao 2025-10-27 14:18:36 +08:00
parent be0d78c43e
commit 0226595ff0

View File

@ -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()),