李勇

修复了Sass后台修改了课堂数据后,sdk没有保存最新数据的bug,原来的数据都保存在MCU,所以没有更新到最新的

此 diff 太大无法显示。
@@ -28,7 +28,7 @@ import MediaModule from 'apes/MediaModule'; @@ -28,7 +28,7 @@ import MediaModule from 'apes/MediaModule';
28 import UTF8 from 'utf-8'; 28 import UTF8 from 'utf-8';
29 29
30 let loger = Loger.getLoger('McuClient'); 30 let loger = Loger.getLoger('McuClient');
31 -let _sdkInfo = {"version": "v1.23.4.201705018", "author": "www.3mang.com"}; 31 +let _sdkInfo = {"version": "v1.23.5.201705023", "author": "www.3mang.com"};
32 32
33 //APE 33 //APE
34 let _sass; 34 let _sass;
@@ -98,28 +98,37 @@ class GlobalConfig { @@ -98,28 +98,37 @@ class GlobalConfig {
98 } 98 }
99 let data=_data; 99 let data=_data;
100 100
101 - this.siteId=data.siteId||this.siteId;//站点号 101 + //下列的信息以从Sass获取的最新的为准
  102 + if(!this.siteId){
  103 + this.siteId=data.siteId;//站点号
  104 + }
  105 + if(!this.classId){
  106 + this.classId=data.classId;
  107 + }
  108 + if(!this.className){
  109 + this.className=data.className;
  110 + }
102 111
103 - this.classId=data.classId||this.classId;  
104 - this.className=data.className||this.className;  
105 - this.classType=data.classType||this.classType;//课堂类型 112 + if(!this.classType){
  113 + this.classType=data.classType;
  114 + }
  115 + if(!this.classBeginTime){
  116 + this.classBeginTime=data.classBeginTime;//课堂创建的时间,这个是Sass返回的
  117 + }
  118 + if(!this.classEndTime){
  119 + this.classEndTime=data.classEndTime;//课堂结束的时间,这个是Sass返回的
  120 + }
  121 +
  122 + //下面的信息Sass和mcu都会更新
106 this.classStatus=data.classStatus||this.classStatus;//课堂的状态 123 this.classStatus=data.classStatus||this.classStatus;//课堂的状态
107 this.classStartTime=data.classStartTime||this.classStartTime;//课堂点击开始时间 124 this.classStartTime=data.classStartTime||this.classStartTime;//课堂点击开始时间
108 -  
109 this.classStopTime=data.classStopTime||this.classStopTime;//最后一次停止的时间(点暂停或结束),每次发送数据都获取当前时间戳 125 this.classStopTime=data.classStopTime||this.classStopTime;//最后一次停止的时间(点暂停或结束),每次发送数据都获取当前时间戳
110 this.classTimestamp=data.classTimestamp||this.classTimestamp;//相对于点开始课堂的时间戳 126 this.classTimestamp=data.classTimestamp||this.classTimestamp;//相对于点开始课堂的时间戳
111 127
112 - this.classBeginTime=data.classBeginTime||this.classBeginTime;//课堂创建的时间,这个是Sass返回的  
113 - this.classEndTime=data.classEndTime||this.classEndTime;//课堂结束的时间,这个是Sass返回的  
114 -  
115 this.recordStatus=data.recordStatus||this.recordStatus;//当前录制状态 128 this.recordStatus=data.recordStatus||this.recordStatus;//当前录制状态
116 this.recordTimestamp=data.recordTimestamp||this.recordTimestamp;//相对于首次开始录制的时间戳 129 this.recordTimestamp=data.recordTimestamp||this.recordTimestamp;//相对于首次开始录制的时间戳
117 this.recordFileName=data.recordFileName||this.recordFileName;//录制的文件名 130 this.recordFileName=data.recordFileName||this.recordFileName;//录制的文件名
118 this.recordDownloadUrl=data.recordDownloadUrl||this.recordDownloadUrl;//下载地址 131 this.recordDownloadUrl=data.recordDownloadUrl||this.recordDownloadUrl;//下载地址
119 -  
120 - //this.activeDocId=data.activeDocId||this.activeDocId;//当前激活的文档ID  
121 - //this.activeDocCurPage=data.activeDocCurPage||this.activeDocCurPage;//当前激活的文档的当前页  
122 -  
123 } 132 }
124 133
125 // 判断自己是否主持人角色 134 // 判断自己是否主持人角色