@ -128,7 +128,6 @@ func (t *UserCtl) WxLogin() {
if customer.IsSpecial == 1 {
if signExist {
history = new(models.SignHistory)
history.Type = 0
history.UserId = user.Id
history.RehearsalId = activity.RehearsalId
history.ActivityId = activityId
@ -183,6 +183,7 @@ func (t *ShakeRedEnvelopeCtl) List() {
for i := range ladders {
if rules[index].Id == ladders[i].ShakeRedEnvelopeRuleId {
rules[index].ShakeRedEnvelopeRuleLadders = append(rules[index].ShakeRedEnvelopeRuleLadders, ladders[i])
rules[index].RedEnvelopeNum += ladders[i].RedEnvelopeNum
}
@ -4,7 +4,7 @@ import (
"time"
)
const ShakeRedEnvelopeRuleLadderTableName = TableNamePrefix + "shake_red_envelope_ladder"
const ShakeRedEnvelopeRuleLadderTableName = TableNamePrefix + "shake_red_envelope_rule_ladder"
//摇红包规则阶梯
type ShakeRedEnvelopeRuleLadder struct {