Commit 1eeee1fe authored by wildfirecode13's avatar wildfirecode13

1

parent 94b7e40d
...@@ -168,10 +168,10 @@ class Select extends Component { ...@@ -168,10 +168,10 @@ class Select extends Component {
// Toast(msg); // Toast(msg);
switch (updateuinfo.code) { switch (updateuinfo.code) {
case 10004: case '10004':
Toast('存在敏感词,请重新检查昵称') Toast('存在敏感词,请重新检查昵称')
break; break;
case 10005: case '10005':
Toast('网络错误,发放欢趣豆失败') Toast('网络错误,发放欢趣豆失败')
break; break;
default: default:
......
...@@ -42,11 +42,12 @@ class Sign extends Component { ...@@ -42,11 +42,12 @@ class Sign extends Component {
} }
} else { } else {
switch (res.code) { switch (res.code) {
case 10010: case '10010':
Toast('网络错误,请联系客服') Toast('网络错误,请联系客服')
break; break;
default: default:
Toast(res.message || '网络异常,请稍后重试~') Toast('网络错误,请联系客服')
// Toast(res.message || '网络异常,请稍后重试~')
} }
} }
}); });
......
...@@ -36,13 +36,13 @@ class Userinfo extends Component { ...@@ -36,13 +36,13 @@ class Userinfo extends Component {
this.props.onClose(); this.props.onClose();
} else { } else {
switch (res.code) { switch (res.code) {
case 10004: case '10004':
Toast('存在敏感词,请重新检查昵称') Toast('存在敏感词,请重新检查昵称')
break; break;
case 10005: case '10005':
Toast('网络错误,发放欢趣豆失败') Toast('网络错误,发放欢趣豆失败')
break; break;
case 10011: case '10011':
Toast('今天不可修改昵称哦~请明天再试试') Toast('今天不可修改昵称哦~请明天再试试')
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment