This commit is contained in:
parent
a090688b49
commit
d4cd0bd2d1
@ -49,10 +49,7 @@ type WatchInfor interface {
|
||||
|
||||
func (w *WatchInfo) GenUid() {
|
||||
if w.Uid == "" {
|
||||
switch w.Website {
|
||||
case CoachOutlet:
|
||||
w.Uid = fmt.Sprintf("coachOutlet_%s", w.Pid)
|
||||
}
|
||||
w.Uid = fmt.Sprintf("coachOutlet_%s", w.Pid)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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