mobile CCTV,mobile surveillance,police body worn cameras
标题:
登录服务器时获取JNIMESSAGE_KEY_I_RESULT,返回400
[打印本页]
author:
cus5
time:
2018-8-20 16:38
标题:
登录服务器时获取JNIMESSAGE_KEY_I_RESULT,返回400
400是什么错误?
public boolean process(JNIMessage message) {
if ("login".equals(message
.getStrParam(JNIMessage.Key.JNIMESSAGE_KEY_S_ID.getName()))) {
MPULanguage.LanguageSet(context);
int result = message.getIntParam(
JNIMessage.Key.JNIMESSAGE_KEY_I_RESULT.getName(), 0);//result=400
if (result / 100 == 2) {
if (loginResult != null) {
loginResult.onLoginResult(true);
if(mpu.getPreviewEntity().getPlatform() == 0){
IMControl.getConfList();
}
}
} else {
Log.d("LoginProcess", "------------->logout");
loginResult.onLoginResult(false);
}
return true;
}
return false;
}
copycode
欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/)
Powered by Discuz! X3.2