Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
李勇
/
McuClient
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
李勇
2017-03-01 16:09:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2a97654aa775e240f5e8766e157c0753264da1d5
2a97654a
1 parent
c14e9f29
1.增加异常错误码
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
38 行增加
和
30 行删除
src/EngineEntrance.js
src/MessageTypes.js
src/EngineEntrance.js
查看文件 @
2a97654
...
...
@@ -109,51 +109,51 @@ export default class MessageEntrance extends Emiter {
//公开外部调用的方法
//class
this
.
init
=
this
.
_init
;
this
.
joinClass
=
this
.
_joinClass
;
this
.
leaveClass
=
this
.
_leaveClass
;
this
.
getMcuClientStatus
=
this
.
_getMcuClientStatus
;
this
.
init
=
this
.
_init
.
bind
(
this
);
this
.
joinClass
=
this
.
_joinClass
.
bind
(
this
);
this
.
leaveClass
=
this
.
_leaveClass
.
bind
(
this
);
this
.
getMcuClientStatus
=
this
.
_getMcuClientStatus
.
bind
(
this
);
//this.getClassDetail = this._getClassDetail;//停用
this
.
getClassStatusInfo
=
this
.
_getClassStatusInfo
;
this
.
sendStartClass
=
this
.
_sendStartClass
;
this
.
sendPauseClass
=
this
.
_sendPauseClass
;
this
.
sendCloseClass
=
this
.
_sendCloseClass
;
this
.
getClassStatusInfo
=
this
.
_getClassStatusInfo
.
bind
(
this
);
this
.
sendStartClass
=
this
.
_sendStartClass
.
bind
(
this
);
this
.
sendPauseClass
=
this
.
_sendPauseClass
.
bind
(
this
);
this
.
sendCloseClass
=
this
.
_sendCloseClass
.
bind
(
this
);
//chatApe
this
.
sendChatMsg
=
this
.
_sendChatMsg
;
this
.
sendChatMsg
=
this
.
_sendChatMsg
.
bind
(
this
)
;
//videoApe
this
.
getVideoPlayPath
=
this
.
_getVideoPlayPath
;
this
.
getVideoPublishPath
=
this
.
_getVideoPublishPath
;
this
.
publishVideo
=
this
.
_publishVideo
;
this
.
stopPublishVideo
=
this
.
_stopPublishVideo
;
this
.
sendVideoBroadcastMsg
=
this
.
_sendVideoBroadcastMsg
;
this
.
getVideoPlayPath
=
this
.
_getVideoPlayPath
.
bind
(
this
);
this
.
getVideoPublishPath
=
this
.
_getVideoPublishPath
.
bind
(
this
);
this
.
publishVideo
=
this
.
_publishVideo
.
bind
(
this
);
this
.
stopPublishVideo
=
this
.
_stopPublishVideo
.
bind
(
this
);
this
.
sendVideoBroadcastMsg
=
this
.
_sendVideoBroadcastMsg
.
bind
(
this
);
//audioApe
this
.
getAudioPlayPath
=
this
.
_getPlayAudioPath
;
this
.
getAudioPublishPath
=
this
.
_getPublishAudioPath
;
this
.
publishAudio
=
this
.
_publishAudio
;
this
.
stopPublishAudio
=
this
.
_stopPublishAudio
;
this
.
sendAudioBroadcastMsg
=
this
.
sendAudioCommandMsg
;
this
.
getAudioPlayPath
=
this
.
_getPlayAudioPath
.
bind
(
this
);
this
.
getAudioPublishPath
=
this
.
_getPublishAudioPath
.
bind
(
this
);
this
.
publishAudio
=
this
.
_publishAudio
.
bind
(
this
);
this
.
stopPublishAudio
=
this
.
_stopPublishAudio
.
bind
(
this
);
this
.
sendAudioBroadcastMsg
=
this
.
sendAudioCommandMsg
.
bind
(
this
);
//whiteBoradApe
this
.
sendInsertAnnotaion
=
this
.
_sendInsertAnnotaion
;
this
.
sendInsertAnnotaion
=
this
.
_sendInsertAnnotaion
.
bind
(
this
)
;
//this.sendDeleteAnnotaion=this._sendDeleteAnnotaion;
this
.
sendDeleteAllAnnotation
=
this
.
_sendDeleteAllAnnotation
;
this
.
sendDeleteCurPageAnnotation
=
this
.
_sendDeleteCurPageAnnotation
;
this
.
sendGotoPrev
=
this
.
_sendGotoPrev
;
this
.
sendDeleteAllAnnotation
=
this
.
_sendDeleteAllAnnotation
.
bind
(
this
);
this
.
sendDeleteCurPageAnnotation
=
this
.
_sendDeleteCurPageAnnotation
.
bind
(
this
);
this
.
sendGotoPrev
=
this
.
_sendGotoPrev
.
bind
(
this
);
//DocApe
this
.
sendDocumentUpload
=
this
.
_sendDocumentUpload
;
//上传文档
this
.
sendDocumentSwitchDoc
=
this
.
_sendDocumentSwitchDoc
;
//切换文档
this
.
sendDocumentSwitchPage
=
this
.
_sendDocumentSwitchPage
;
//翻页
this
.
sendDocumentDelete
=
this
.
_sassDeleteDocument
;
//删除文档,先通过Sass删除,sass删除成功之后再同步mcu
this
.
sendDocumentUpload
=
this
.
_sendDocumentUpload
.
bind
(
this
);;
//上传文档
this
.
sendDocumentSwitchDoc
=
this
.
_sendDocumentSwitchDoc
.
bind
(
this
);;
//切换文档
this
.
sendDocumentSwitchPage
=
this
.
_sendDocumentSwitchPage
.
bind
(
this
);;
//翻页
this
.
sendDocumentDelete
=
this
.
_sassDeleteDocument
.
bind
(
this
);;
//删除文档,先通过Sass删除,sass删除成功之后再同步mcu
//this.sendDocumentDeleteAll= this._documentDeleteAll;//删除所有文档
this
.
sendDocumentCommand
=
this
.
_sendDocumentCommand
;
//操作文档(翻页、缩放、滚动...)
this
.
getDocImageFullPath
=
this
.
_getDocImageFullPath
;
//获取文档图片的完整路径
this
.
getDocPDFFullPath
=
this
.
_getDocPDFFullPath
;
//获取文档的完整路径
this
.
sendDocumentCommand
=
this
.
_sendDocumentCommand
.
bind
(
this
);;
//操作文档(翻页、缩放、滚动...)
this
.
getDocImageFullPath
=
this
.
_getDocImageFullPath
.
bind
(
this
);;
//获取文档图片的完整路径
this
.
getDocPDFFullPath
=
this
.
_getDocPDFFullPath
.
bind
(
this
);;
//获取文档的完整路径
}
...
...
src/MessageTypes.js
查看文件 @
2a97654
...
...
@@ -105,6 +105,11 @@ MessageTypes.ERR_APE_INTERFACE_PARAM_WRONG=501;//APE鍦ㄦ帴鍙h皟鐢ㄦ椂鍙傛暟閿欒
MessageTypes
.
ERR_DOC_DELETE_FAILED
=
600
;
//删除文档失败
MessageTypes
.
ERR_DOC_DELETE_FAILED_PARAM
=
601
;
//删除文档失败,参数错误
MessageTypes
.
ERR_SDK_FAILED
=
700
;
// sdk还没初始化
MessageTypes
.
ERR_INTERFACE_NONE
=
701
;
//调用的接口不存在
MessageTypes
.
ERR_INTERFACE_PARAMS_ERROR
=
702
;
//调用的接口,传递的参数不正确
MessageTypes
.
ERR_NETWORK
=
10000
;
//网络错误
MessageTypes
.
ERR_UNKNOWN
=
10001
;
//未知错误
...
...
@@ -145,6 +150,9 @@ MessageTypes.ErrorReson[MessageTypes.ERR_APE_INTERFACE_PARAM_WRONG]="APE鍦ㄦ帴鍙
MessageTypes
.
ErrorReson
[
MessageTypes
.
ERR_DOC_DELETE_FAILED
]
=
"删除文档失败"
;
MessageTypes
.
ErrorReson
[
MessageTypes
.
ERR_DOC_DELETE_FAILED_PARAM
]
=
"删除文档失败,参数错误"
;
MessageTypes
.
ErrorReson
[
MessageTypes
.
ERR_SDK_FAILED
]
=
"sdk还没初始化"
;
MessageTypes
.
ErrorReson
[
MessageTypes
.
ERR_INTERFACE_NONE
]
=
"调用的接口不存在"
;
MessageTypes
.
ErrorReson
[
MessageTypes
.
ERR_INTERFACE_PARAMS_ERROR
]
=
"调用的接口,传递的参数不正确"
;
MessageTypes
.
ErrorReson
[
MessageTypes
.
ERR_NETWORK
]
=
"网络错误"
;
MessageTypes
.
ErrorReson
[
MessageTypes
.
ERR_UNKNOWN
]
=
"未知错误"
;
...
...
请
注册
或
登录
后发表评论