发送im消息时去掉执行人personId<0的限制,避免其它人发送失败
This commit is contained in:
parent
420a6d01f0
commit
2932c9f84e
@ -6,6 +6,7 @@ import cn.axzo.msg.center.service.enums.OrganizationTypeEnum;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
@ -20,6 +21,7 @@ import java.util.List;
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
@Slf4j
|
||||
public class MessageSendReqV3 implements Serializable {
|
||||
|
||||
/**
|
||||
@ -153,6 +155,8 @@ public class MessageSendReqV3 implements Serializable {
|
||||
|
||||
for (PersonV3DTO receiver : receivers) {
|
||||
AssertUtil.notNull(receiver.getId(), "接收者ID不能为空");
|
||||
if (receiver.getId() <= 0)
|
||||
log.warn("接收者ID <= 0, request={}", this);
|
||||
// 去掉这个校验
|
||||
//AssertUtil.isFalse(receiver.getId() <= 0, "接收者ID必须>=0");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user