From cd20fdc3d37ef21b2594ef40137653dca56b7904 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Thu, 15 Jun 2023 09:43:05 +0800 Subject: [PATCH] todo headwear id ! --- domain/model/cp_m/level.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/domain/model/cp_m/level.go b/domain/model/cp_m/level.go index f7a6f04..395c098 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) } -- 2.22.0