Commit fbccee6a by zhangchunyu

fix bug cookie get mainUserId

parent ba6126bc
......@@ -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