Skip to content

Commit

Permalink
升级im sdk,添加已读回调示例
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrian2012 committed Feb 2, 2024
1 parent 2c0f022 commit 2893cd7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<log4j2.version>2.17.2</log4j2.version>
<wfc.sdk.version>1.1.9</wfc.sdk.version>
<wfc.sdk.version>1.2.2</wfc.sdk.version>
</properties>

<dependencies>
Expand Down
Binary file not shown.
Binary file removed src/lib/sdk-1.1.9.jar
Binary file not shown.
Binary file added src/lib/sdk-1.2.2.jar
Binary file not shown.
9 changes: 9 additions & 0 deletions src/main/java/cn/wildfirechat/app/IMCallbackController.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ public Object onThingsMessage(@RequestBody OutputMessageData event) {
return "ok";
}

/*
消息已读回调
*/
@PostMapping(value = "/im_event/message_read")
public Object onMessageRead(@RequestBody OutputReadData event) {
System.out.println("message:" +event.user);
return "ok";
}

/*
群组信息更新回调
*/
Expand Down

0 comments on commit 2893cd7

Please sign in to comment.