Skip to content

Commit 30b85ff

Browse files
authored
Server:解决DemoVerifier.getVisitorId类型转换错误
1 parent 7767200 commit 30b85ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

APIJSON-Java-Server/APIJSONDemo/src/main/java/apijson/demo/server/DemoVerifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static long getVisitorId(HttpSession session) {
101101
Long id = (Long) session.getAttribute(Controller.USER_ID);
102102
if (id == null) {
103103
Visitor v = getVisitor(session);
104-
id = v == null ? 0 : value(v.getId());
104+
id = v == null ? 0 : value((Long) v.getId());
105105
session.setAttribute(Controller.USER_ID, id);
106106
}
107107
return value(id);

0 commit comments

Comments
 (0)