From d7f7dfe84c9b7624d74fa9c08d3563b549317ce0 Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期六, 26 一月 2019 16:04:32 +0800 Subject: [PATCH] 等级更新时间 当月1号 --- fanli/src/main/java/com/yeshi/fanli/util/account/UserUtil.java | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/account/UserUtil.java b/fanli/src/main/java/com/yeshi/fanli/util/account/UserUtil.java index 132d655..12bdfe4 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/account/UserUtil.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/account/UserUtil.java @@ -6,6 +6,7 @@ import java.util.List; import org.apache.commons.beanutils.PropertyUtils; +import org.yeshi.utils.HttpUtil; import com.yeshi.fanli.entity.bus.user.BindingAccount; import com.yeshi.fanli.entity.bus.user.UserInfo; @@ -67,7 +68,17 @@ return String.format(Constant.systemCommonConfig.getBaseUserRankIconUrl() + "/rank_picture_%s.png", rank + ""); } - + + + public static String getInviteShortLink (Long uid) { + return HttpUtil.getShortLink("http://" + Constant.wxGZConfig.getLoginHost() + "/" + + Constant.systemCommonConfig.getProjectName() + "/" + + java.lang.System.currentTimeMillis()+ + "/client/threeShareNew?uid=" + uid); + } + + + public static String getInviteCode(Long uid) { long num = 1000000000L + uid; @@ -76,7 +87,7 @@ } private static String convert10To36(Long num) { - String numbers = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + String numbers = "YE9VFA3N6KG7JZH4LD5IO2RBS0QTMPU1WC8X"; BigDecimal numBig = new BigDecimal(num); int ge = numBig.divideAndRemainder(new BigDecimal(36))[1].intValue(); -- Gitblit v1.8.0