From e4a74cbbb4f34b9e88dfa6edb8296a7e5b9e127c Mon Sep 17 00:00:00 2001
From: hexiaohui <hexiaohui@LAPTOP-03V48RSB>
Date: 星期日, 27 一月 2019 21:28:16 +0800
Subject: [PATCH] 增加分享活动订单及相关服务

---
 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