admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserAccountControllerV2.java
@@ -717,6 +717,24 @@
      // 人工客服链接
      json.put("csdLink", configService.get(ConfigKeyEnum.customerServiceLink.getKey()));
      
      UserVIPInfo userVIPInfo = userVIPInfoService.selectByUid(uid);
      String leftTime = "";
      if (userVIPInfo != null && userVIPInfo.getState() == UserVIPInfo.STATE_VERIFING &&  userVIPInfo.getApplyTime() != null) {
         long s = 48 * 60 * 60 - ((System.currentTimeMillis() - userVIPInfo.getApplyTime().getTime()) / 1000);
         if (s > 3600) {
            leftTime = s / 3600 + "小时";
            leftTime = "还剩" + leftTime;
         } else if (s >= 60) {
            leftTime = s / 60 + "分钟";
            leftTime = "还剩" + leftTime;
         } else if (s > 0) {
            leftTime = s + "秒";
            leftTime = "还剩" + leftTime;
         } else {
            leftTime = "还剩0秒";
         }
      }
      json.put("leftTime", leftTime);
      if (!StringUtil.isNullOrEmpty(callback)) {
         out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(json)));
      } else {