mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-10 02:09:51 +08:00
fix: check enter live room success
This commit is contained in:
@@ -119,7 +119,7 @@ func (vc *VideoCrawler) startLiveCrawler(enterPoint PointF) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
liveRoom, err := vc.getCurrentVideo()
|
liveRoom, err := vc.getCurrentVideo()
|
||||||
if err != nil || (liveRoom.Type != VideoType_Live || liveRoom.Type != VideoType_PreviewLive) {
|
if err != nil || (liveRoom.Type != VideoType_Live && liveRoom.Type != VideoType_PreviewLive) {
|
||||||
return errors.New("enter live room failed")
|
return errors.New("enter live room failed")
|
||||||
}
|
}
|
||||||
log.Info().Interface("liveRoom", liveRoom).Msg("enter live room success")
|
log.Info().Interface("liveRoom", liveRoom).Msg("enter live room success")
|
||||||
|
|||||||
Reference in New Issue
Block a user