feat: 调整API接口 新增封装工具

This commit is contained in:
coding
2017-12-28 08:29:10 +00:00
parent 9ef64d9bc2
commit fe615564ce
6 changed files with 87 additions and 61 deletions

View File

@ -1,9 +1,9 @@
/*global Java, base, module, exports, require*/
function impl(name) {
return require('../internal/' + DetectServerType + '/' + name);
return require('../internal/' + DetectServerType + '/' + name, {warnNotFound: false});
}
module.exports = {
exports = module.exports = {
command: impl('command'),
event: impl('event'),
permission: impl('permission'),