Browse Source

fix: 一些小bug

master
xsx 2 years ago
parent
commit
612f0b5468
  1. 2
      im-platform/src/main/java/com/bx/implatform/controller/WebrtcGroupController.java
  2. 2
      im-platform/src/main/java/com/bx/implatform/controller/WebrtcPrivateController.java
  3. 2
      im-platform/src/main/java/com/bx/implatform/vo/PrivateMessageVO.java
  4. 4
      im-uniapp/common/messageType.js
  5. 4
      im-web/src/api/messageType.js

2
im-platform/src/main/java/com/bx/implatform/controller/WebrtcGroupController.java

@ -114,7 +114,7 @@ public class WebrtcGroupController {
return ResultUtils.success(webrtcGroupService.info(groupId)); return ResultUtils.success(webrtcGroupService.info(groupId));
} }
@Operation(summary = "获取通话信息") @Operation(summary = "心跳")
@PostMapping("/heartbeat") @PostMapping("/heartbeat")
public Result heartbeat(@RequestParam("groupId") Long groupId) { public Result heartbeat(@RequestParam("groupId") Long groupId) {
webrtcGroupService.heartbeat(groupId); webrtcGroupService.heartbeat(groupId);

2
im-platform/src/main/java/com/bx/implatform/controller/WebrtcPrivateController.java

@ -68,7 +68,7 @@ public class WebrtcPrivateController {
return ResultUtils.success(); return ResultUtils.success();
} }
@Operation(summary = "获取通话信息") @Operation(summary = "心跳")
@PostMapping("/heartbeat") @PostMapping("/heartbeat")
public Result heartbeat(@RequestParam Long uid) { public Result heartbeat(@RequestParam Long uid) {
webrtcPrivateService.heartbeat(uid); webrtcPrivateService.heartbeat(uid);

2
im-platform/src/main/java/com/bx/implatform/vo/PrivateMessageVO.java

@ -23,7 +23,7 @@ public class PrivateMessageVO {
@Schema(description = " 发送内容") @Schema(description = " 发送内容")
private String content; private String content;
@Schema(description = "消息内容类型 IMCmdType") @Schema(description = "消息内容类型 MessageType")
private Integer type; private Integer type;
@Schema(description = " 状态") @Schema(description = " 状态")

4
im-uniapp/common/messageType.js

@ -21,12 +21,12 @@ let isAction = function(type){
// 单人通话信令 // 单人通话信令
let isRtcPrivate = function(type){ let isRtcPrivate = function(type){
return type>=100 && type < 300; return type>=100 && type < 200;
} }
// 多人通话信令 // 多人通话信令
let isRtcGroup = function(type){ let isRtcGroup = function(type){
return type>=200 && type < 400; return type>=200 && type < 300;
} }

4
im-web/src/api/messageType.js

@ -21,12 +21,12 @@ let isAction = function(type){
// 单人通话信令 // 单人通话信令
let isRtcPrivate = function(type){ let isRtcPrivate = function(type){
return type>=100 && type < 300; return type>=100 && type < 200;
} }
// 多人通话信令 // 多人通话信令
let isRtcGroup = function(type){ let isRtcGroup = function(type){
return type>=200 && type < 400; return type>=200 && type < 300;
} }

Loading…
Cancel
Save