diff --git a/domain/model/cp_m/level.go b/domain/model/cp_m/level.go index 55fe3c48b1ed2fd45d389f46a4171c766dbdde8b..90de5cb54b36fe6cebf8f961f4991b339c6574b7 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 }