Skip to content

Commit

Permalink
⬆️ upgrade blade-mvc and blade-jdbc
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Dec 26, 2017
1 parent 91ac044 commit 752f375
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sqlite.version>3.15.1</sqlite.version>
<blade-mvc.version>2.0.6-Alpha1</blade-mvc.version>
<blade-jdbc.version>0.2.2-RELEASE</blade-jdbc.version>
<blade-mvc.version>2.0.6-BETA</blade-mvc.version>
<blade-jdbc.version>0.0.3-RELEASE</blade-jdbc.version>
<blade-tpl.verion>0.1.2</blade-tpl.verion>
<blade-validator>0.0.2</blade-validator>
<commonmark.version>0.9.0</commonmark.version>
Expand All @@ -37,7 +37,7 @@

<dependency>
<groupId>com.bladejava</groupId>
<artifactId>blade-jdbc</artifactId>
<artifactId>blade-jdbc-core</artifactId>
<version>${blade-jdbc.version}</version>
</dependency>

Expand Down
7 changes: 3 additions & 4 deletions src/main/java/com/tale/utils/TaleUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@ public static void logout(Session session, Response response) {
*/
public static Integer getCookieUid(Request request) {
if (null != request) {
Optional<String> c = request.cookie(TaleConst.USER_IN_COOKIE);
if (c.isPresent()) {
String value = request.cookie(TaleConst.USER_IN_COOKIE);
if (StringKit.isNotBlank(value)) {
try {
String value = c.get();
long[] ids = HASH_IDS.decode(value);
long[] ids = HASH_IDS.decode(value);
if (null != ids && ids.length > 0) {
return Long.valueOf(ids[0]).intValue();
}
Expand Down

0 comments on commit 752f375

Please sign in to comment.