You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
332 B
17 lines
332 B
package service |
|
|
|
import ( |
|
"context" |
|
"go-common/app/interface/main/videoup/model/archive" |
|
) |
|
|
|
func (s *Service) dealSubtitle(c context.Context, sub *archive.Subtitle, aid, mid int64, ip string) (err error) { |
|
if sub != nil { |
|
var open bool |
|
if sub.Open == 1 { |
|
open = true |
|
} |
|
s.sub.Update(c, aid, open, sub.Lan) |
|
} |
|
return |
|
}
|
|
|