From 0f9ab4c1aa0b47c497ee9ee0d95c92e97a4875e5 Mon Sep 17 00:00:00 2001 From: tommy <3405129587@qq.com> Date: Fri, 22 May 2020 14:15:14 +0800 Subject: [PATCH] start activity --- controllers/pc/activity.go | 6 ++---- controllers/pc/reward.go | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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 {