Skip to content

Commit 7767200

Browse files
authored
新增漏提交的方法 value
1 parent 5cc687a commit 7767200

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ public static Visitor getVisitor(HttpSession session) {
114114
return session == null ? null : (Visitor) session.getAttribute(Controller.USER_);
115115
}
116116

117+
public static long value(Long v) {
118+
return v == null ? 0 : v;
119+
}
117120

118121

119122
}

0 commit comments

Comments
 (0)