提交 3ab3677a 编写于 作者: L Lesliexx

修改data

上级 8cf8f939
...@@ -296,26 +296,25 @@ function initClaPage() { ...@@ -296,26 +296,25 @@ function initClaPage() {
} }
}, },
error: function (data) { error: function (data) {
if (data.responseJSON.errorCode == 1) {
if (data.errorCode == 1) {
if (lang == "zh-cn") { if (lang == "zh-cn") {
alert("服务器处理错误!"); alert("服务器处理错误!");
} else { } else {
alert("Server handle error!"); alert("Server handle error!");
} }
} else if (data.errorCode == 2) { } else if (data.responseJSON.errorCode == 2) {
if (lang == "zh-cn") { if (lang == "zh-cn") {
alert("邮箱已经被注册!"); alert("邮箱已经被注册!");
} else { } else {
alert("E-Mail is already registered!"); alert("E-Mail is already registered!");
} }
} else if (data.errorCode == 3) { } else if (data.responseJSON.errorCode == 3) {
if (lang == "zh-cn") { if (lang == "zh-cn") {
alert("电话已经被注册!"); alert("电话已经被注册!");
} else { } else {
alert("Telephone is already registered!"); alert("Telephone is already registered!");
} }
} else if (data.errorCode == 4) { } else if (data.responseJSON.errorCode == 4) {
if (lang == "zh-cn") { if (lang == "zh-cn") {
alert("注册邮箱与gitee账号邮箱不一致,请在这里检查:https://gitee.com/profile/emails") alert("注册邮箱与gitee账号邮箱不一致,请在这里检查:https://gitee.com/profile/emails")
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册