admin
2020-07-04 e04f81915e100107eca5fe16ba44898f3a0dbd55
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserAccountControllerV2.java
@@ -96,6 +96,7 @@
import com.yeshi.fanli.vo.user.UserVipRateVO;
import net.sf.json.JSONObject;
import org.yeshi.utils.entity.ProxyIP;
/**
 * 账户系统
@@ -258,12 +259,12 @@
         UserInfo userInfo = null;
         // 手机登录
         if (loginType == 1) {
            userInfo = userAccountService.loginPhone(request, loginType, vcode, phone, system.getAppid());
            userInfo = userAccountService.loginPhone(new ProxyIP(request.getRemoteHost(),request.getRemotePort()),acceptData, loginType, vcode, phone, system.getAppid());
         }
         // 微信登录
         if (loginType == 2) {
            userInfo = userAccountService.loginWeiXinNew(request, acceptData, loginType, code, system.getAppid());
            userInfo = userAccountService.loginWeiXinNew(new ProxyIP(request.getRemoteHost(),request.getRemotePort()), acceptData, loginType, code, system.getAppid());
         }
         if (userInfo == null) {
@@ -377,7 +378,7 @@
      }
      try {
         UserInfo userInfo = userAccountService.bindPhoneToLogin(phone, key, system.getAppid(), request);
         UserInfo userInfo = userAccountService.bindPhoneToLogin(new ProxyIP(request.getRemoteHost(),request.getRemotePort()),acceptData, phone, key);
         JSONObject data = new JSONObject();
         data.put("userInfo", UserUtil.filterForClientUser(userInfo));
@@ -389,14 +390,14 @@
      }
   }
   /**
    * 绑定微信V2.1.3 电话号码 登录
    *
    * @param acceptData
    * @param vcode
    * @param phone
    * @param uid
    * @param code
    * @param key
    * @param request
    * @param out
    */
   @RequestSerializableByKey(key = "'bindWXLogin-'+#code")
@@ -421,7 +422,7 @@
      }
      try {
         UserInfo userInfo = userAccountService.bindWXToLogin(request, acceptData, code, system.getAppid(), key);
         UserInfo userInfo = userAccountService.bindWXToLogin(new ProxyIP(request.getRemoteHost(),request.getRemotePort()), acceptData, code, system.getAppid(), key);
         JSONObject data = new JSONObject();
         data.put("userInfo", UserUtil.filterForClientUser(userInfo));
         out.print(JsonUtil.loadTrueResult(data));
@@ -431,14 +432,11 @@
   }
   /**
    * 绑定电话号码 V2.0.1 微信登录
    *
    * @param acceptData
    * @param vcode
    * @param phone
    * @param uid
    * @param out
    */
   @RequestMapping(value = "recordBind")
@@ -447,7 +445,6 @@
         out.print(JsonUtil.loadFalseResult("用户id为空"));
         return;
      }
      bindRemindService.addBindPhone(uid);
      out.print(JsonUtil.loadTrueResult("记录成功"));
   }
@@ -480,7 +477,7 @@
      vo.setNickName(userInfo.getNickName());
      vo.setPortrait(userInfo.getPortrait());
      vo.setHelpLink(userVipConfigService.getValueByKey("help_link_vip_h5"));
      vo.setCsdLink(configService.get(ConfigKeyEnum.customerServiceLink.getKey()));
      vo.setCsdLink(configService.getValue(ConfigKeyEnum.customerServiceLink.getKey(),acceptData.getSystem()));
      Date now = new Date();
      Date start = new Date(0);
@@ -763,7 +760,7 @@
      }
      json.put("tearcherWX", tearcherWX);
      json.put("tearcherTip", "我是你的导师,为你在省赚过程中解难答疑,对你一对一辅导,倾听你的需求总结并反馈给板栗快省官方运营团队,快来添加我吧。");
      json.put("newerGongLue", configService.get(ConfigKeyEnum.newerGonglue.getKey()));
      json.put("newerGongLue", configService.getValue(ConfigKeyEnum.newerGonglue.getKey(),acceptData.getSystem()));
      // 已完成
      json.put("doneOrder", doneOrder);
@@ -781,7 +778,7 @@
      json.put("superVIP", jsonrRed3);
      // 人工客服链接
      json.put("csdLink", configService.get(ConfigKeyEnum.customerServiceLink.getKey()));
      json.put("csdLink", configService.getValue(ConfigKeyEnum.customerServiceLink.getKey(),acceptData.getSystem()));
      UserVIPInfo userVIPInfo = userVIPInfoService.selectByUid(uid);
      String leftTime = "";
@@ -929,10 +926,7 @@
         redisManager.clearSMSVCode(phone, SMSHistory.TYPE_REMVOE);
      }
      
      UserInfo user = new UserInfo(uid);
      user.setState(UserInfo.STATE_DELETE);
      user.setStateDesc("用户主动注销账户");
      userInfoService.updateByPrimaryKeySelective(user);
      userAccountService.forbiddenUserAll(uid, "用户主动注销账户");
      JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult("注销成功"));
   }
   
@@ -990,7 +984,7 @@
      data.put("totalMoney", totalMoney.setScale(2, BigDecimal.ROUND_DOWN));
      data.put("monthMoney", monthMoney.setScale(2, BigDecimal.ROUND_DOWN));
      data.put("lastMoney", lastMoney.setScale(2, BigDecimal.ROUND_DOWN));
      data.put("link", configService.get(ConfigKeyEnum.accountLogoutProtocolLink.getKey()));
      data.put("link", configService.getValue(ConfigKeyEnum.accountLogoutProtocolLink.getKey(),acceptData.getSystem()));
      JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(data));
   }