|
|
|
@ -8,6 +8,7 @@ import com.fr.design.extra.exe.PluginLoginExecutor;
|
|
|
|
|
import com.fr.design.extra.ucenter.Client; |
|
|
|
|
import com.fr.design.extra.ucenter.XMLHelper; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.general.SiteCenter; |
|
|
|
|
import com.fr.general.http.HttpClient; |
|
|
|
|
import com.fr.json.JSONObject; |
|
|
|
@ -282,9 +283,9 @@ public class LoginWebBridge {
|
|
|
|
|
try { |
|
|
|
|
JSONObject jo = new JSONObject(userInfo); |
|
|
|
|
String status = jo.get("status").toString(); |
|
|
|
|
if (status.equals(LOGIN_SUCCESS)) { |
|
|
|
|
if (ComparatorUtils.equals(status, LOGIN_SUCCESS)) { |
|
|
|
|
String username = jo.get("username").toString(); |
|
|
|
|
int uid = Integer.parseInt(jo.get("uid") == null ? "" : jo.get("uid").toString()); |
|
|
|
|
int uid = Integer.parseInt(jo.get("uid") == null ? StringUtils.EMPTY : jo.get("uid").toString()); |
|
|
|
|
closeQQWindow(); |
|
|
|
|
loginSuccess(username); |
|
|
|
|
|
|
|
|
@ -293,7 +294,7 @@ public class LoginWebBridge {
|
|
|
|
|
list.add(username); |
|
|
|
|
list.add(StringUtils.EMPTY); |
|
|
|
|
BBSLoginUtils.bbsLogin(list); |
|
|
|
|
} else if (status.equals(LOGIN_FAILED)) { |
|
|
|
|
} else if (ComparatorUtils.equals(status, LOGIN_FAILED)) { |
|
|
|
|
//账号没有QQ授权
|
|
|
|
|
closeQQWindow(); |
|
|
|
|
try { |
|
|
|
|