import React from 'react'; import { Icon } from 'antd'; class LicenseMessage extends React.Component { render() { const { message } = this.props; if (message == '1') { return (
Success !
); } let msgComp =
; if (message == '0') { msgComp = (

License信息错误,请检查启动脚本是否包含GBK字符集并重新启动Resin尝试,并且检查License是否正确(E8要求更换公司名称的授权必须清空ecology/license目录再重启Resin提交)!

License message error, please check the start script contain 'GBK' and try to restart Resin and check if the License is correct(you must clear ecology/license and restart resin before you upload the difference conpanyname License in E8)!

); } else if (message == '2') { msgComp = (

数据库连接或者执行失败,请按下列步骤检查:
1.检查数据库服务器是否正常;
2.检查数据库驱动包是否存在;
3.检查weaver.properies配置信息是否正确;
4.检查ecology日志是否有异常!

Failed to Connect Data Server, please check by step as below:
1.checking the Data Server is OK;
2.checking the SQL driver is exist;
3.checking the message of the file 'weaver.properies' is right;
4.Check ecology log exception!

); } else if (message == '3') { msgComp = (

License文件上传出错!

License file uploading error!

); } else if (message == '4') { msgComp = (

License信息错误,License已过期!

License message error, license is overdue!

); } else if (message == '5') { msgComp = (

License信息错误,已分配用户数大于License申请人数!

License message error, the HRMs is larger than the apllied in the license!

); } else if (message == '6') { msgComp = (

没有选择正确的License文件或者License文件不存在!

Wrong choosing License file or License file is not exist!

); } else if (message == '7') { msgComp = (

1.验证码不得为空!
2.系统设置表SystemSet字段filesystem值对应路径(默认为空)不存在或者没有写权限,详细见ecology/log/ecology日志!

1.Verification code must not be empty!
2.System error, detail to see the ecology log!

); } else { msgComp =
{message}
; } return
{msgComp}
; } } export default LicenseMessage;