Browse Source

start activity

master
黄梓健 5 years ago
parent
commit
0f9ab4c1aa
  1. 6
      controllers/pc/activity.go
  2. 2
      controllers/pc/reward.go

6
controllers/pc/activity.go

@ -6,7 +6,6 @@ import (
"hudongzhuanjia/models"
"hudongzhuanjia/utils/code"
"hudongzhuanjia/utils/define"
"time"
)
//活动
@ -44,14 +43,13 @@ func (t *ActivityCtl) StartActivity() {
Status: 1,
IsDelete: false,
}
_, err = models.Add(rehearsal)
_, err = models.Add(&rehearsal)
//core.GetXormAuto().InsertOne(rehearsal)
t.CheckErr(err)
activity.RehearsalId = rehearsal.Id
}
activity.Status = define.StatusRunning
activity.UpdatedAt = time.Now()
// todo: 校验
_, err = models.Update(activity.Id, activity, "status", "rehearsal_id")
t.CheckErr(err)
t.JSON(map[string]interface{}{

2
controllers/pc/reward.go

@ -96,7 +96,7 @@ func (t *RewardCtl) Review() {
continue
}
_, err = pay_service.Refund("欧轩互动-打赏拉黑", v.OutTradeNo)
_, err = pay_service.Refund("欧轩互动-打赏敏感关键字拉黑", v.OutTradeNo)
t.CheckErr(err)
} else {

Loading…
Cancel
Save