Browse Source

watch num user id

master
黄梓健 5 years ago
parent
commit
46469eaf30
  1. 6
      controllers/client/live.go

6
controllers/client/live.go

@ -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)

Loading…
Cancel
Save