Commit 3684327b authored by hujiebin's avatar hujiebin

headwearId coming

parent 5ec32062
......@@ -274,12 +274,12 @@ func AddCpLevelPoints(model *domain.Model, cpRelation CpRelation, points mysql.N
}
// 赠送cp头像头饰
if oldLevel < 3 && cpLevel.Level >= 3 {
if err := headwear_tx.SendHeadwear(model, cpRelation.UserId1, 2272, 30); err != nil {
if err := headwear_tx.SendHeadwear(model, cpRelation.UserId1, 2571, 30); err != nil {
return err
}
if err := headwear_tx.SendHeadwear(model, cpRelation.UserId2, 2272, 30); err != nil {
if err := headwear_tx.SendHeadwear(model, cpRelation.UserId2, 2571, 30); err != nil {
return err
} // todo headwear id !
}
}
return cpLevel.Persistence(model)
}
......
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