diff --git a/domain/model/cp_m/level.go b/domain/model/cp_m/level.go index f7a6f0464e1180b98a31167a06875213c868237e..395c098b15bd9b0661d73b1f49f30f68e329af21 100644 --- a/domain/model/cp_m/level.go +++ b/domain/model/cp_m/level.go @@ -4,6 +4,7 @@ import ( "fmt" "git.hilo.cn/hilo-common/domain" "git.hilo.cn/hilo-common/resource/mysql" + "git.hilo.cn/hilo-common/txop/headwear_tx" "gorm.io/gorm" "gorm.io/gorm/clause" "hilo-user/_const/enum/cp_e" @@ -273,7 +274,12 @@ func AddCpLevelPoints(model *domain.Model, cpRelation CpRelation, points mysql.N } // 赠送cp头像头饰 if oldLevel < 3 && cpLevel.Level >= 3 { - //headwear_tx.SendHeadwear() // todo headwear id ! + if err := headwear_tx.SendHeadwear(model, cpRelation.UserId1, 2272, 30); err != nil { + return err + } + if err := headwear_tx.SendHeadwear(model, cpRelation.UserId2, 2272, 30); err != nil { + return err + } // todo headwear id ! } return cpLevel.Persistence(model) }