subtitle.go 332 B

1234567891011121314151617
  1. package service
  2. import (
  3. "context"
  4. "go-common/app/interface/main/videoup/model/archive"
  5. )
  6. func (s *Service) dealSubtitle(c context.Context, sub *archive.Subtitle, aid, mid int64, ip string) (err error) {
  7. if sub != nil {
  8. var open bool
  9. if sub.Open == 1 {
  10. open = true
  11. }
  12. s.sub.Update(c, aid, open, sub.Lan)
  13. }
  14. return
  15. }