|
|
@@ -184,7 +184,7 @@ public class FJNXLoginService{
|
|
|
}
|
|
|
JSONObject accountJson = new JSONObject(accountInfo);
|
|
|
|
|
|
- if("true".equals(accountJson.getStr("result"))){
|
|
|
+ if(!"true".equals(accountJson.getStr("result"))){
|
|
|
throw new RuntimeException("验证token失败,登录失败!");
|
|
|
}
|
|
|
|
|
|
@@ -205,7 +205,7 @@ public class FJNXLoginService{
|
|
|
JSONObject userContent = new JSONObject(userJson.getStr("data"));
|
|
|
String sap_user = userContent.getStr("sap_user");
|
|
|
|
|
|
- JSONObject info = new JSONObject(userJson.getStr("sap_user"));
|
|
|
+ JSONObject info = new JSONObject(sap_user);
|
|
|
|
|
|
String username = info.getStr("username");
|
|
|
|