1.文档模块修改获取图片序列的代码,页码从1开始
2.音视频模块修改接口参数名称 toNodeId 3.socket模块调整代码顺序
正在显示
4 个修改的文件
包含
6 行增加
和
5 行删除
| @@ -85,6 +85,8 @@ class EverSocket extends Emiter { | @@ -85,6 +85,8 @@ class EverSocket extends Emiter { | ||
| 85 | loger.log('WebSocket,Timers已经销毁'); | 85 | loger.log('WebSocket,Timers已经销毁'); |
| 86 | return; | 86 | return; |
| 87 | } | 87 | } |
| 88 | + this._enableEverSocket = false; | ||
| 89 | + this._setConnected(false); | ||
| 88 | this.websocket.onopen = undefined; | 90 | this.websocket.onopen = undefined; |
| 89 | this.websocket.onclose = undefined; | 91 | this.websocket.onclose = undefined; |
| 90 | this.websocket.onerror = undefined; | 92 | this.websocket.onerror = undefined; |
| @@ -95,8 +97,7 @@ class EverSocket extends Emiter { | @@ -95,8 +97,7 @@ class EverSocket extends Emiter { | ||
| 95 | loger.log('ignore errors'); | 97 | loger.log('ignore errors'); |
| 96 | } | 98 | } |
| 97 | this.websocket = undefined; | 99 | this.websocket = undefined; |
| 98 | - this._enableEverSocket = false; | ||
| 99 | - this._setConnected(false); | 100 | + |
| 100 | } | 101 | } |
| 101 | 102 | ||
| 102 | _onOpen() { | 103 | _onOpen() { |
| @@ -166,7 +166,7 @@ class AudioApe extends Ape { | @@ -166,7 +166,7 @@ class AudioApe extends Ape { | ||
| 166 | audioSendPdu.isPublic = true; | 166 | audioSendPdu.isPublic = true; |
| 167 | 167 | ||
| 168 | audioSendPdu.fromNodeId = GlobalConfig.nodeId;//发起人 | 168 | audioSendPdu.fromNodeId = GlobalConfig.nodeId;//发起人 |
| 169 | - audioSendPdu.toNodeId = parseInt(_param.toNodeID) || 0;//接收者,0就是所有人 | 169 | + audioSendPdu.toNodeId = parseInt(_param.toNodeId) || 0;//接收者,0就是所有人 |
| 170 | audioSendPdu.actionType = parseInt(_param.actionType) || ApeConsts.MEDIA_ACTION_DEFAULT; | 170 | audioSendPdu.actionType = parseInt(_param.actionType) || ApeConsts.MEDIA_ACTION_DEFAULT; |
| 171 | 171 | ||
| 172 | audioSendPdu.data = this._rCArrayBufferUtil.strToUint8Array("h5" + _param.data);//开头两个字会乱码 | 172 | audioSendPdu.data = this._rCArrayBufferUtil.strToUint8Array("h5" + _param.data);//开头两个字会乱码 |
| @@ -171,7 +171,7 @@ class DocApe extends Ape { | @@ -171,7 +171,7 @@ class DocApe extends Ape { | ||
| 171 | if(lastIndex>0){ | 171 | if(lastIndex>0){ |
| 172 | let newPath=fullPath.substr(0,lastIndex); | 172 | let newPath=fullPath.substr(0,lastIndex); |
| 173 | let pathArr=[]; | 173 | let pathArr=[]; |
| 174 | - for(let i=1;i<_param.pageNum;i++){ | 174 | + for(let i=1;i<=_param.pageNum;i++){ |
| 175 | pathArr.push(newPath+"/"+i+"."+fileType); | 175 | pathArr.push(newPath+"/"+i+"."+fileType); |
| 176 | } | 176 | } |
| 177 | return pathArr; | 177 | return pathArr; |
| @@ -176,7 +176,7 @@ class VideoApe extends Ape { | @@ -176,7 +176,7 @@ class VideoApe extends Ape { | ||
| 176 | videoSendPdu.isPublic = true; | 176 | videoSendPdu.isPublic = true; |
| 177 | 177 | ||
| 178 | videoSendPdu.fromNodeId = GlobalConfig.nodeId;//发起人 | 178 | videoSendPdu.fromNodeId = GlobalConfig.nodeId;//发起人 |
| 179 | - videoSendPdu.toNodeId = parseInt(_param.toNodeID) || 0;//接收者,0就是所有人 | 179 | + videoSendPdu.toNodeId = parseInt(_param.toNodeId) || 0;//接收者,0就是所有人 |
| 180 | videoSendPdu.actionType = parseInt(_param.actionType) || ApeConsts.MEDIA_ACTION_DEFAULT; | 180 | videoSendPdu.actionType = parseInt(_param.actionType) || ApeConsts.MEDIA_ACTION_DEFAULT; |
| 181 | 181 | ||
| 182 | videoSendPdu.data = this._rCArrayBufferUtil.strToUint8Array("h5" + _param.data);//开头两个字会乱码 | 182 | videoSendPdu.data = this._rCArrayBufferUtil.strToUint8Array("h5" + _param.data);//开头两个字会乱码 |
-
请 注册 或 登录 后发表评论