diff --git a/controllers/pc/activity.go b/controllers/pc/activity.go index f0b4be4..d203cf0 100644 --- a/controllers/pc/activity.go +++ b/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{}{ diff --git a/controllers/pc/reward.go b/controllers/pc/reward.go index a1c5fe9..db37150 100644 --- a/controllers/pc/reward.go +++ b/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 {