Browse Source

fix:bug

token_replace
Tooooommy 4 years ago
parent
commit
af856f81c5
  1. 1
      controllers/client/login.go
  2. 1
      controllers/pc/shake_red_envelope.go
  3. 2
      models/shake_red_envelope_rule_ladder.go

1
controllers/client/login.go

@ -128,7 +128,6 @@ func (t *UserCtl) WxLogin() {
if customer.IsSpecial == 1 { if customer.IsSpecial == 1 {
if signExist { if signExist {
history = new(models.SignHistory) history = new(models.SignHistory)
history.Type = 0
history.UserId = user.Id history.UserId = user.Id
history.RehearsalId = activity.RehearsalId history.RehearsalId = activity.RehearsalId
history.ActivityId = activityId history.ActivityId = activityId

1
controllers/pc/shake_red_envelope.go

@ -183,6 +183,7 @@ func (t *ShakeRedEnvelopeCtl) List() {
for i := range ladders { for i := range ladders {
if rules[index].Id == ladders[i].ShakeRedEnvelopeRuleId { if rules[index].Id == ladders[i].ShakeRedEnvelopeRuleId {
rules[index].ShakeRedEnvelopeRuleLadders = append(rules[index].ShakeRedEnvelopeRuleLadders, ladders[i]) rules[index].ShakeRedEnvelopeRuleLadders = append(rules[index].ShakeRedEnvelopeRuleLadders, ladders[i])
rules[index].RedEnvelopeNum += ladders[i].RedEnvelopeNum
} }
} }
} }

2
models/shake_red_envelope_rule_ladder.go

@ -4,7 +4,7 @@ import (
"time" "time"
) )
const ShakeRedEnvelopeRuleLadderTableName = TableNamePrefix + "shake_red_envelope_ladder"
const ShakeRedEnvelopeRuleLadderTableName = TableNamePrefix + "shake_red_envelope_rule_ladder"
//摇红包规则阶梯 //摇红包规则阶梯
type ShakeRedEnvelopeRuleLadder struct { type ShakeRedEnvelopeRuleLadder struct {

Loading…
Cancel
Save