Commit 75179067 by 高鹏

Merge branch 'fixCookieSpilt' into 'master'

fix bug cookie get mainUserId

See merge request rays/pcloud-common-parent!70
parents ba6126bc fbccee6a
......@@ -255,7 +255,7 @@ public class Cookie {
String[] user = userInfoArry[i].split("=");
String mainUserId = user[user.length - 1];
userInfos.put("mainUserId", StringUtil.isEmpty(mainUserId) || "undefined".equalsIgnoreCase(mainUserId)
|| "null".equalsIgnoreCase(mainUserId) ? null : NumberUtil.toLong(mainUserId));
|| "null".equalsIgnoreCase(mainUserId) ? null : (!mainUserId.equals("-1") ? NumberUtil.toLong(mainUserId) : -1));
}
}
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