Skip to content

Commit

Permalink
Merge pull request #162 from xyzshen/dev
Browse files Browse the repository at this point in the history
fix error code bug
  • Loading branch information
CodingCattwo authored Apr 26, 2020
2 parents cc9383d + e0fb584 commit bc3106a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 26 deletions.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}</style></head><body><body><div id=app style="height: 100% !important;"></div><script type=text/javascript src=./static/js/0.a3d9366f1bd7bf2be3db.js></script><script type=text/javascript src=./static/js/3.13685abdfa719c868b1b.js></script><script type=text/javascript src=./static/js/runtime.0893a6dc5469844e2940.js></script><script type=text/javascript src=./static/js/5.cd1afc40d4fdf7a6be89.js></script></body><script src=./static/js/web3.min.js type=text/javascript></script><script>if (self == top) {
}</style></head><body><body><div id=app style="height: 100% !important;"></div><script type=text/javascript src=./static/js/0.a3d9366f1bd7bf2be3db.js></script><script type=text/javascript src=./static/js/3.48da802aa083a88a0183.js></script><script type=text/javascript src=./static/js/runtime.0893a6dc5469844e2940.js></script><script type=text/javascript src=./static/js/5.cd1afc40d4fdf7a6be89.js></script></body><script src=./static/js/web3.min.js type=text/javascript></script><script>if (self == top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
Expand Down

Large diffs are not rendered by default.

44 changes: 20 additions & 24 deletions src/util/errcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ let errCode = {
},
"201008": {
en: "contract's current version has been deployed",
zh: '合同的当前版本已部署'
zh: '合约的当前版本已部署'
},
"201009": {
en: "contract is not deployed",
Expand Down Expand Up @@ -125,19 +125,19 @@ let errCode = {
},
"201023": {
en: "contract already exists",
zh: '合同已存在'
zh: '合约已存在'
},
"201024": {
en: "contract name cannot be repeated",
zh: '合同名称不能重复'
zh: '合约名称不能重复'
},
"201025": {
en: "invalid contract id",
zh: '合同ID无效'
zh: '合约ID无效'
},
"201026": {
en: "contract has been deployed",
zh: '合同已部署'
zh: '合约已部署'
},
"201027": {
en: "send abiInfo fail",
Expand Down Expand Up @@ -225,7 +225,7 @@ let errCode = {
},
"201106": {
en: "Contract name cannot be empty",
zh: '合同名称不能为空'
zh: '合约名称不能为空'
},
"201107": {
en: "System config key cannot be empty",
Expand Down Expand Up @@ -253,7 +253,7 @@ let errCode = {
},
"201130": {
en: "Sign user Id cannot be empty",
zh: '签名用户Id不能为空'
zh: 'webase-sign用户编号不能为空'
},

"201213": {
Expand Down Expand Up @@ -284,10 +284,6 @@ let errCode = {
en: "permission denied or params error, set system config value fail",
zh: '权限被拒绝或params错误,设置系统配置值失败'
},
"201206": {
en: "Create system config in db fail for already exist",
zh: '在数据库中为已存在的创建系统配置失败'
},
"201207": {
en: "System config key is invalid",
zh: '系统配置密钥无效'
Expand Down Expand Up @@ -322,11 +318,11 @@ let errCode = {
},
"201221": {
en: "Contract version should only contains 'A-Z' or 'a-z' or '0-9' or dot mark ",
zh: '合同版本应仅包含“A-Z”或“A-Z”或“0-9”或点标记'
zh: '合约版本应仅包含“A-Z”或“A-Z”或“0-9”或点'
},
"201222": {
en: "Version of contract is out of length",
zh: '合同版本过长'
zh: '合约版本过长'
},
"201226": {
en: "sql syntax error",
Expand Down Expand Up @@ -377,20 +373,20 @@ let errCode = {
zh: '合约ABI校验错误,请检查ABI参数格式'
},
"202000": {
en: "invalid node info",
zh: '无效的节点信息'
en: "invalid front info",
zh: '无效的节点id'
},
"202001": {
en: "database exception",
zh: '数据库异常'
},
"202002": {
en: "organization already exists",
zh: '组织已经存在'
en: "not found any front",
zh: '未添加前置'
},
"202003": {
en: "organization not exists",
zh: '组织信息不存在'
en: "not support this ip",
zh: '不支持该ip'
},
"202004": {
en: "front already exists",
Expand Down Expand Up @@ -614,7 +610,7 @@ let errCode = {
},
"202062": {
en: "cert format error, must start with -----BEGIN CERTIFICATE-----\\n, end with end",
zh: "证书格式错误,必须以-----开始证书开始-----\\n, end with end"
zh: "证书格式错误,必须由 --BEGIN CERTIFICATE-- 包围"
},
"202063": {
en: "saving front's cert error",
Expand Down Expand Up @@ -659,7 +655,7 @@ let errCode = {

"202090": {
en: "Update guomi methodId error",
zh: "更新guomi方法错误"
zh: "更新国密methodId错误"
},
"202091": {
en: "Front's encrypt type not matches with nodemgr",
Expand All @@ -685,7 +681,7 @@ let errCode = {
},
"402000": {
en: "param exception",
zh: "参数异常"
zh: "参数错误"
},
"-50000": {
en: "Permission denied",
Expand Down Expand Up @@ -737,7 +733,7 @@ let errCode = {
},
"-51200": {
en: "Contract name and version already exist",
zh: "合同名称和版本已存在"
zh: "合约名称和版本已存在"
},
"-51201": {
en: "Version string length exceeds the maximum limit",
Expand All @@ -749,7 +745,7 @@ let errCode = {
},
"-51500": {
en: "Contract name and version already exist",
zh: "合同名称和版本已存在"
zh: "合约名称和版本已存在"
},
"-51501": {
en: "Condition parse error",
Expand Down

0 comments on commit bc3106a

Please sign in to comment.