wuyanan

ref |> 竖屏直播时长不足一分钟,显示为0时1分

@@ -504,10 +504,10 @@ export class DateTimeUtils { @@ -504,10 +504,10 @@ export class DateTimeUtils {
504 } 504 }
505 505
506 static liveDurationSecondToTime(seconds: number) { 506 static liveDurationSecondToTime(seconds: number) {
507 - let time = ''  
508 if (seconds < 60) { 507 if (seconds < 60) {
509 - return '0时0分' 508 + return '0时1分'
510 } 509 }
  510 + let time = ''
511 let days = Math.floor(seconds/this.SECONDS_IN_DAY) 511 let days = Math.floor(seconds/this.SECONDS_IN_DAY)
512 512
513 let hours = Math.floor(seconds%this.SECONDS_IN_DAY/this.SECONDS_IN_HOUR) 513 let hours = Math.floor(seconds%this.SECONDS_IN_DAY/this.SECONDS_IN_HOUR)