|
|
@@ -579,11 +579,11 @@ public class MirrorController {
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
|
if (user == null) {
|
|
|
- result.putOpt("code",0);
|
|
|
+ result.putOpt("code",1);
|
|
|
result.putOpt("msg","用户不存在或已过期");
|
|
|
return result.toString();
|
|
|
}
|
|
|
- result.putOpt("code",1);
|
|
|
+ result.putOpt("code",0);
|
|
|
result.putOpt("msg","登陆成功");
|
|
|
result.putOpt("isPro",true);
|
|
|
result.putOpt("usertoken",userToken);
|
|
|
@@ -593,7 +593,7 @@ public class MirrorController {
|
|
|
} catch (Exception e) {
|
|
|
log.error("服务器错误", e);
|
|
|
JSONObject result = new JSONObject();
|
|
|
- result.putOpt("code",0);
|
|
|
+ result.putOpt("code",1);
|
|
|
result.putOpt("msg","服务器错误");
|
|
|
return result.toString();
|
|
|
}
|