| | |
| | | JSONObject data = new JSONObject();
|
| | |
|
| | | Integer state = user.getState();
|
| | | if (state == UserInfo.STATE_FORBIDDEN) {
|
| | | data.put("state", false);
|
| | | } else {
|
| | | data.put("state", true);
|
| | | if (state == UserInfo.STATE_NORMAL) {
|
| | | data.put("stateDesc", "正常");
|
| | | } else if (state == UserInfo.STATE_DELETE) {
|
| | | data.put("stateDesc", "已删除");
|
| | | } else if (state == UserInfo.STATE_FORBIDDEN) {
|
| | | data.put("stateDesc", "已封禁");
|
| | | } else if (state == UserInfo.STATE_DELETE_OUT_OF_DATE) {
|
| | | data.put("stateDesc", "长期未登录删除");
|
| | | }
|
| | | |
| | | data.put("state", state);
|
| | | data.put("phone", user.getPhone());
|
| | |
|
| | | // 微信授权
|
| | |
| | | // 支付宝
|
| | | if (type != null && type == 1) {
|
| | | accountState = true;
|
| | | accountName = bindingAccount.getName();
|
| | | accountName = bindingAccount.getAccount();
|
| | | }
|
| | | }
|
| | | data.put("accountName", accountName);
|
| | | data.put("account", accountName);
|
| | | data.put("accountState", accountState);
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
|
| | | }
|