JMessage登录失败显示Invalid username

CloudFlyingTung
2019-08-14 07:32 315 0

用户注册成功,但是登录失败提示Invalid username.
注册代码:
JMessageClient.register(registerPhoneEt.getText().toString().trim(), registerPasswordEt.getText().toString().trim(), new BasicCallback() {
@Override
public void gotResult(int i, String s) {
//i=0,s=Success
LogUtils.v("极光IM注册:i=" + i + ",s=" + s);
}
});

登录代码:
JMessageClient.login(loginPhoneEt.getText().toString().trim(),loginPasswordEt.getText().toString().trim(), new BasicCallback() {
@Override
public void gotResult(int i, String s) {
LogUtils.v("极光IM登录:i=" + i + ",s=" + s);//输出内容极光IM登录:i=871303,s=Invalid username.
}
});

2个回答

热门排序