1 parent 7767200 commit 30b85ffCopy full SHA for 30b85ff
1 file changed
APIJSON-Java-Server/APIJSONDemo/src/main/java/apijson/demo/server/DemoVerifier.java
@@ -101,7 +101,7 @@ public static long getVisitorId(HttpSession session) {
101
Long id = (Long) session.getAttribute(Controller.USER_ID);
102
if (id == null) {
103
Visitor v = getVisitor(session);
104
- id = v == null ? 0 : value(v.getId());
+ id = v == null ? 0 : value((Long) v.getId());
105
session.setAttribute(Controller.USER_ID, id);
106
}
107
return value(id);
0 commit comments