|
|
@ -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{}{ |
|
|
|