Commit 7d83fd1e authored by hujiebin's avatar hujiebin

保级续送cp头像头饰

parent 4fb4b928
...@@ -372,6 +372,15 @@ func ClearExpireCpPoints(model *domain.Model) error { ...@@ -372,6 +372,15 @@ func ClearExpireCpPoints(model *domain.Model) error {
}); err != nil { }); err != nil {
model.Log.Errorf("AddCpLevelDetail fail:%v", err) 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 return nil
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment