Tang 1 жил өмнө
parent
commit
587e8a85b1

+ 2 - 2
pages3/polyv/detail.vue

@@ -1147,7 +1147,7 @@
 					// 46 * 60
 					this.photoList = this.commonConfig(
 						totalVideoTime,
-						this.jjShiGongYuan ? (50 * 60) - 1 : undefined
+						this.jjShiGongYuan ? totalVideoTime < 2760 ? (46 * 60) - 1 : (45 * 60) - 1 : undefined
 					);
 					this.postCoursePhotoRecord(true); //提交随机拍照时间数组
 				}
@@ -1179,7 +1179,7 @@
 						photoList.push(parseInt(totalVideoTime / 2));
 					} else {
 						for (let i = 0; i < num; i++) {
-							photoList.push(parseInt(((totalVideoTime - 3) / num) * (i + 1)));
+							photoList.push(parseInt((totalVideoTime / (num + 1)) * (i + 1)));
 						}
 					}
 					this.photoNum = num;