Commit fbf01a1e authored by chenweijian's avatar chenweijian

家族贡献排行自动发奖

parent 785c265a
......@@ -271,11 +271,13 @@ func getAwardAndLogList(model *domain.Model, powerIds []uint64, items []group_po
Award: string(oAwardJ),
})
awardList = append(awardList, &award_tx.UserAward{
MedalId: oAward.MedalId,
MedalDuration: oAward.MedalDay,
Diamond: oAward.Diamond,
NobleLevel: oAward.Noble,
NobleDuration: oAward.NobleDay})
MedalId: oAward.MedalId,
MedalDuration: oAward.MedalDay,
Diamond: oAward.Diamond,
NobleLevel: oAward.Noble,
NobleDuration: oAward.NobleDay,
HeaddressId: oAward.HeaddressId,
HeaddressDuration: oAward.HeaddressDay})
// 家族成员奖励
for i, m := range v.StarList {
uRank := i + 1
......@@ -325,23 +327,23 @@ type awardConf struct {
func CalcGroupPowerMonthRankActConf() map[int]map[int]*awardConf {
return map[int]map[int]*awardConf{
1: {
0: {MedalId: 1, MedalDay: 30, Diamond: 300000, Noble: 5, NobleDay: 15},
1: {MedalId: 1, MedalDay: 30, Diamond: 100000, Noble: 5, NobleDay: 7},
4: {HeaddressId: 1, HeaddressDay: 30},
0: {MedalId: 5211, MedalDay: 30, Diamond: 300000, Noble: 5, NobleDay: 15},
1: {MedalId: 5251, MedalDay: 30, Diamond: 100000, Noble: 5, NobleDay: 7, HeaddressId: 2121, HeaddressDay: 30},
4: {HeaddressId: 2121, HeaddressDay: 30},
},
2: {
0: {MedalId: 1, MedalDay: 30, Diamond: 200000, Noble: 4, NobleDay: 15},
1: {MedalId: 1, MedalDay: 30, Diamond: 80000, Noble: 4, NobleDay: 7},
4: {HeaddressId: 1, HeaddressDay: 30},
0: {MedalId: 5221, MedalDay: 30, Diamond: 200000, Noble: 4, NobleDay: 15},
1: {MedalId: 5261, MedalDay: 30, Diamond: 80000, Noble: 4, NobleDay: 7, HeaddressId: 2131, HeaddressDay: 30},
4: {HeaddressId: 2131, HeaddressDay: 30},
},
3: {
0: {MedalId: 1, MedalDay: 30, Diamond: 100000, Noble: 5, NobleDay: 5},
1: {MedalId: 1, MedalDay: 30, Diamond: 50000},
4: {HeaddressId: 1, HeaddressDay: 30},
0: {MedalId: 5231, MedalDay: 30, Diamond: 100000, Noble: 5, NobleDay: 5},
1: {MedalId: 5271, MedalDay: 30, Diamond: 50000, HeaddressId: 2141, HeaddressDay: 30},
4: {HeaddressId: 2141, HeaddressDay: 30},
},
4: {
0: {MedalId: 1, MedalDay: 30},
1: {MedalId: 1, MedalDay: 30, HeaddressId: 1, HeaddressDay: 30},
0: {MedalId: 5241, MedalDay: 30},
1: {MedalId: 5281, MedalDay: 30, HeaddressId: 2151, HeaddressDay: 30},
},
}
}
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