-
Notifications
You must be signed in to change notification settings - Fork 8
register
Ren Fei edited this page Dec 17, 2020
·
2 revisions
原文:https://code.google.com/archive/p/discuz-ucenter-api-for-java/wikis/register.wiki
Client uc = new Client();
//setcookie('Example_auth', '', -86400); // 生成同步退出的代码 String $returns = uc.uc_user_register("cccc", "ccccc" ,"[email protected]" ); int $uid = Integer.parseInt($returns); if($uid <= 0) {
if($uid == -1) {
System.out.print("用户名不合法");
} else if($uid == -2) {
System.out.print("包含要允许注册的词语");
} else if($uid == -3) {
System.out.print("用户名已经存在");
} else if($uid == -4) {
System.out.print("Email 格式有误");
} else if($uid == -5) {
System.out.print("Email 不允许注册");
} else if($uid == -6) {
System.out.print("该 Email 已经被注册");
} else {
System.out.print("未定义");
}
} else {
System.out.println("OK:"+$returns);
}