正在显示
3 个修改的文件
包含
6 行增加
和
3 行删除
| @@ -58,7 +58,7 @@ class AudioApe extends Ape { | @@ -58,7 +58,7 @@ class AudioApe extends Ape { | ||
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | if (_param == null||_param.channelId == null|| | 60 | if (_param == null||_param.channelId == null|| |
| 61 | - _param.classId == null||_param.userId == null|| | 61 | + _param.classId == null||_param.userId == null||_param.userId==""|| |
| 62 | _param.siteId == null|| _param.timestamp==null) | 62 | _param.siteId == null|| _param.timestamp==null) |
| 63 | { | 63 | { |
| 64 | loger.warn('publishAudio,参数错误', _param); | 64 | loger.warn('publishAudio,参数错误', _param); |
| @@ -93,6 +93,7 @@ class AudioApe extends Ape { | @@ -93,6 +93,7 @@ class AudioApe extends Ape { | ||
| 93 | channelInfo.classId=_param.classId;//GlobalConfig.classId; | 93 | channelInfo.classId=_param.classId;//GlobalConfig.classId; |
| 94 | channelInfo.siteId=_param.siteId;//GlobalConfig.siteId; | 94 | channelInfo.siteId=_param.siteId;//GlobalConfig.siteId; |
| 95 | channelInfo.toNodeId=0; | 95 | channelInfo.toNodeId=0; |
| 96 | + channelInfo.userId=_param.userId; | ||
| 96 | channelInfo.mediaType=ApeConsts.MEDIA_TYPE_AUDIO; | 97 | channelInfo.mediaType=ApeConsts.MEDIA_TYPE_AUDIO; |
| 97 | this.sendTableUpdateHandler(channelInfo); | 98 | this.sendTableUpdateHandler(channelInfo); |
| 98 | return {"code": ApeConsts.RETURN_SUCCESS, "data":"推流成功!"} | 99 | return {"code": ApeConsts.RETURN_SUCCESS, "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; |
| @@ -59,7 +59,7 @@ class VideoApe extends Ape { | @@ -59,7 +59,7 @@ class VideoApe extends Ape { | ||
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | if (_param == null||_param.channelId == null|| | 61 | if (_param == null||_param.channelId == null|| |
| 62 | - _param.classId == null||_param.userId == null|| | 62 | + _param.classId == null||_param.userId == null||_param.userId == ""|| |
| 63 | _param.siteId == null|| _param.timestamp==null) | 63 | _param.siteId == null|| _param.timestamp==null) |
| 64 | { | 64 | { |
| 65 | loger.warn('publishVideo,参数错误', _param); | 65 | loger.warn('publishVideo,参数错误', _param); |
| @@ -97,6 +97,8 @@ class VideoApe extends Ape { | @@ -97,6 +97,8 @@ class VideoApe extends Ape { | ||
| 97 | channelInfo.siteId=_param.siteId;//GlobalConfig.siteId; | 97 | channelInfo.siteId=_param.siteId;//GlobalConfig.siteId; |
| 98 | channelInfo.toNodeId=0; | 98 | channelInfo.toNodeId=0; |
| 99 | channelInfo.mediaType=ApeConsts.MEDIA_TYPE_VIDEO; | 99 | channelInfo.mediaType=ApeConsts.MEDIA_TYPE_VIDEO; |
| 100 | + channelInfo.userId=_param.userId; | ||
| 101 | + | ||
| 100 | this.sendTableUpdateHandler(channelInfo); | 102 | this.sendTableUpdateHandler(channelInfo); |
| 101 | return {"code": ApeConsts.RETURN_SUCCESS, "data":"推流成功!"} | 103 | return {"code": ApeConsts.RETURN_SUCCESS, "data":"推流成功!"} |
| 102 | } | 104 | } |
-
请 注册 或 登录 后发表评论