admin
2020-07-03 651a15c78f668bef3859d9ed1bb7ad0b669d3600
fanli/src/main/java/com/yeshi/fanli/controller/admin/UserInfoAdminController.java
@@ -538,12 +538,16 @@
      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());
      
      // 微信授权
@@ -592,10 +596,10 @@
         // 支付宝
         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));
   }