From 7d83fd1ed3b21f9888de027ad605bcf1a1c7d96c Mon Sep 17 00:00:00 2001 From: hujiebin Date: Fri, 16 Jun 2023 10:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E7=BA=A7=E7=BB=AD=E9=80=81cp=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E5=A4=B4=E9=A5=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/model/cp_m/level.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/domain/model/cp_m/level.go b/domain/model/cp_m/level.go index 55fe3c4..90de5cb 100644 --- a/domain/model/cp_m/level.go +++ b/domain/model/cp_m/level.go @@ -372,6 +372,15 @@ func ClearExpireCpPoints(model *domain.Model) error { }); err != nil { model.Log.Errorf("AddCpLevelDetail fail:%v", err) } + // 保级续送cp头像头饰 + if newLevel >= 3 { + if err := headwear_tx.SendHeadwear(model, cpLevel.UserId1, cp_e.CpHeadwearId, 30); err != nil { + return err + } + if err := headwear_tx.SendHeadwear(model, cpLevel.UserId2, cp_e.CpHeadwearId, 30); err != nil { + return err + } + } } return nil } -- 2.22.0