Skip to content

Commit 39d923b

Browse files
author
linfeng
committed
1.优化Bean转Map工具,值为空则不转到Map中
2.修改签名时间戳单位为毫秒
1 parent ba567fd commit 39d923b

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

api-wrap-boot/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>api-wrap</artifactId>
77
<groupId>com.seelyn</groupId>
8-
<version>1.0.2</version>
8+
<version>1.0.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -48,7 +48,7 @@
4848
<dependency>
4949
<groupId>com.seelyn</groupId>
5050
<artifactId>api-wrap-core</artifactId>
51-
<version>1.0.2</version>
51+
<version>1.0.3</version>
5252
</dependency>
5353
</dependencies>
5454

api-wrap-boot/src/main/java/com/seelyn/apiwrap/handler/WrapHandlerServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public String getSignature(String appKey, Map<String, Object> data) {
5757
@Override
5858
public void isLegalTime(long timestamp) {
5959

60-
long diff = timestamp - TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis());
60+
long diff = TimeUnit.MILLISECONDS.toSeconds(timestamp - System.currentTimeMillis());
6161
if (Math.abs(diff) > legalTime) {
6262
throw new WrapTimestampException(String.valueOf(diff));
6363
}

api-wrap-client/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>api-wrap</artifactId>
77
<groupId>com.seelyn</groupId>
8-
<version>1.0.2</version>
8+
<version>1.0.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>com.seelyn</groupId>
1717
<artifactId>api-wrap-core</artifactId>
18-
<version>1.0.2</version>
18+
<version>1.0.3</version>
1919
</dependency>
2020
</dependencies>
2121

api-wrap-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>api-wrap</artifactId>
77
<groupId>com.seelyn</groupId>
8-
<version>1.0.2</version>
8+
<version>1.0.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

api-wrap-test/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>api-wrap</artifactId>
77
<groupId>com.seelyn</groupId>
8-
<version>1.0.2</version>
8+
<version>1.0.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -16,12 +16,12 @@
1616
<dependency>
1717
<groupId>com.seelyn</groupId>
1818
<artifactId>api-wrap-boot</artifactId>
19-
<version>1.0.2</version>
19+
<version>1.0.3</version>
2020
</dependency>
2121
<dependency>
2222
<groupId>com.seelyn</groupId>
2323
<artifactId>api-wrap-client</artifactId>
24-
<version>1.0.2</version>
24+
<version>1.0.3</version>
2525
</dependency>
2626
<dependency>
2727
<groupId>org.springframework.boot</groupId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<groupId>com.seelyn</groupId>
2020
<artifactId>api-wrap</artifactId>
21-
<version>1.0.2</version>
21+
<version>1.0.3</version>
2222
<name>api-wrap</name>
2323
<description>api wrap</description>
2424

0 commit comments

Comments
 (0)