chenxiong %!s(int64=3) %!d(string=hai) anos
pai
achega
5fb0a79869
Modificáronse 2 ficheiros con 8 adicións e 5 borrados
  1. 1 1
      common/request.js
  2. 7 4
      pages3/polyv/detail.vue

+ 1 - 1
common/request.js

@@ -17,7 +17,7 @@ export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release
 // export const socket_url = 'ws://120.79.166.78:19009/webSocket/'  //预发布
 // export const socket_url = 'wss://api.xyyxt.net/webSocket/'  //release
 
-export const version = '5.2.4' 
+export const version = '5.2.5' 
 export const tenantId = '867735392558919680' 
 export const myRequest = (options) => {
 	if (store.state.allowLoading && !options.noLoading) {

+ 7 - 4
pages3/polyv/detail.vue

@@ -840,6 +840,7 @@ export default {
       //清除录播
 				this.hasStart = false;
       this.$store.commit("setPlayVID", { playVID: null });
+      this.getPhotoLastRecord();
       this.playChannel(item);
 			this.channelItem = item;
     });
@@ -1271,14 +1272,16 @@ export default {
           if (this.liveDuration == 2) {
             //直播第2秒拍照
 						console.log(this.channelItem)
+						console.log(this.photoHistoryList,'this.photoHistoryList')
             if (
-              this.goodsPhotographConfig.livephotograph == 1 &&
-              this.channelItem.learning != 1
+              this.goodsPhotographConfig && this.goodsPhotographConfig.livephotograph == 1 &&
+              this.channelItem.learning != 1 && this.photoHistoryList.length == 0
             ) {
               //开启直播拍照
-
               this.openPhoto();
-            }
+            } else {
+							this.postStudyRecord(0);
+						}
           }
         }
       }