Commit cd20fdc3 authored by hujiebin's avatar hujiebin

todo headwear id !

parent 86b72f1a
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"fmt" "fmt"
"git.hilo.cn/hilo-common/domain" "git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/resource/mysql" "git.hilo.cn/hilo-common/resource/mysql"
"git.hilo.cn/hilo-common/txop/headwear_tx"
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
"hilo-user/_const/enum/cp_e" "hilo-user/_const/enum/cp_e"
...@@ -273,7 +274,12 @@ func AddCpLevelPoints(model *domain.Model, cpRelation CpRelation, points mysql.N ...@@ -273,7 +274,12 @@ func AddCpLevelPoints(model *domain.Model, cpRelation CpRelation, points mysql.N
} }
// 赠送cp头像头饰 // 赠送cp头像头饰
if oldLevel < 3 && cpLevel.Level >= 3 { 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) 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