mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-07 21:48:31 -05:00
19 lines
366 B
Go
19 lines
366 B
Go
|
|
package archive
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
)
|
||
|
|
|
||
|
|
// AddNetSafeMd5 fn
|
||
|
|
func (s *Service) AddNetSafeMd5(c context.Context, nid int64, md5 string) (err error) {
|
||
|
|
err = s.arc.AddNetSafeMd5(c, nid, md5)
|
||
|
|
go s.NotifyNetSafe(c, nid)
|
||
|
|
return
|
||
|
|
}
|
||
|
|
|
||
|
|
// NotifyNetSafe fn
|
||
|
|
func (s *Service) NotifyNetSafe(c context.Context, nid int64) (err error) {
|
||
|
|
_ = s.arc.NotifyNetSafe(c, nid)
|
||
|
|
return
|
||
|
|
}
|