This commit is contained in:
parent
a090688b49
commit
d4cd0bd2d1
@ -49,11 +49,8 @@ type WatchInfor interface {
|
||||
|
||||
func (w *WatchInfo) GenUid() {
|
||||
if w.Uid == "" {
|
||||
switch w.Website {
|
||||
case CoachOutlet:
|
||||
w.Uid = fmt.Sprintf("coachOutlet_%s", w.Pid)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (w *WatchInfo) ToPusherIds() []int64 {
|
||||
|
@ -41,7 +41,6 @@ func (c *CoachOutlet) SetOption(cfg model.WatchInfo) {
|
||||
|
||||
func (c *CoachOutlet) Cancel() {
|
||||
c.cancel()
|
||||
c.db.Where("uid = ?", c.cfg.Uid).Model(c.cfg).Update("watch", false)
|
||||
}
|
||||
|
||||
func (c *CoachOutlet) Restart() {
|
||||
|
Loading…
Reference in New Issue
Block a user