Skip to content

Commit

Permalink
fix(#14): use Objects.toString instead of Number.toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff-Tian committed Sep 7, 2023
1 parent 33abcdb commit be06280
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-services-social-weixin</artifactId>
<version>0.5.4</version>
<version>0.5.5</version>
<name>Keycloak Services Social WeiXin</name>
<description/>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public Response mpQrScanStatus(@QueryParam("ticket") String ticket) {
data.put("ticketCreatedAt", ticketCreatedAt.toString());
data.put("status", status);
data.put("openid", openid);
data.put("scannedAt", scannedAt.toString());
data.put("scannedAt", Objects.toString(scannedAt, null));

var objectMapper = new ObjectMapper();
var json = objectMapper.writeValueAsString(data);
Expand Down

0 comments on commit be06280

Please sign in to comment.