Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Jun 7, 2024
1 parent d201386 commit a97736c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/com/emby/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ public static void main(String[] args) {
.addAction("/", (req, res) -> {
JsonObject jsonObject = gson.fromJson(req.getBody(), JsonObject.class);
JsonObject item = jsonObject.get("Item").getAsJsonObject();
ThreadUtil.execute(() -> pinyin(item));
try {
if (Objects.nonNull(item)) {
ThreadUtil.execute(() -> pinyin(item));
}
} catch (Exception e) {
e.printStackTrace();
}
res.sendOk();
}).start();

Expand Down

0 comments on commit a97736c

Please sign in to comment.