|
|
@ -7,15 +7,13 @@ import ( |
|
|
|
) |
|
|
|
|
|
|
|
type LiveCtl struct { |
|
|
|
//controllers.AuthorCtl
|
|
|
|
controllers.BaseCtl |
|
|
|
controllers.AuthorCtl |
|
|
|
} |
|
|
|
|
|
|
|
// 详情
|
|
|
|
func (t *LiveCtl) Detail() { |
|
|
|
activityId := t.MustGetInt64("activity_id") |
|
|
|
//userId := t.MustGetUID()
|
|
|
|
var userId int64 = 0 |
|
|
|
userId := t.MustGetUID() |
|
|
|
|
|
|
|
err := new(models.LiveViewer).Record(userId, activityId) |
|
|
|
t.CheckErr(err) |
|
|
|