Commit 1e28fc27 by 田超

add param

parent cc9dff42
...@@ -140,7 +140,11 @@ public enum SceneCode { ...@@ -140,7 +140,11 @@ public enum SceneCode {
/** /**
* 会员到期提醒 * 会员到期提醒
*/ */
MEMBERSHIP_EXPIRE("MEMBERSHIP_EXPIRE"); MEMBERSHIP_EXPIRE("MEMBERSHIP_EXPIRE"),
/**
* 奖金发放通知
*/
PRIZE_SEND_SCENE("PRIZE_SEND_SCENE");
/** /**
* 值 * 值
......
...@@ -89,6 +89,15 @@ public class Cookie { ...@@ -89,6 +89,15 @@ public class Cookie {
public static final String SOURCE_TYPE = "sourceType"; public static final String SOURCE_TYPE = "sourceType";
/** /**
* 一级分享ID
*/
public static final String FIRST_TD = "firstTd";
/**
* 二级分享ID
*/
public static final String SECOND_TD = "secondTd";
/**
* cookie 信息處理 * cookie 信息處理
* @param userInfo * @param userInfo
* @return * @return
...@@ -190,6 +199,20 @@ public class Cookie { ...@@ -190,6 +199,20 @@ public class Cookie {
String code = sourceType[sourceType.length - 1]; String code = sourceType[sourceType.length - 1];
userInfos.put(SOURCE_TYPE, code); userInfos.put(SOURCE_TYPE, code);
} }
//add by tc
if (userInfoArry[i].contains(FIRST_TD)) {
String[] firstTD = userInfoArry[i].split("=");
String code = firstTD[firstTD.length - 1];
userInfos.put(FIRST_TD, StringUtil.isEmpty(code) || "undefined".equalsIgnoreCase(code) || "null".equalsIgnoreCase(code) ? null
: Long.valueOf(code));
}
if (userInfoArry[i].contains(SECOND_TD)) {
String[] secondTD = userInfoArry[i].split("=");
String code = secondTD[secondTD.length - 1];
userInfos.put(SECOND_TD, StringUtil.isEmpty(code) || "undefined".equalsIgnoreCase(code) || "null".equalsIgnoreCase(code) ? null
: Long.valueOf(code));
}
} }
return userInfos; return userInfos;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment