|
|
@@ -45,10 +45,8 @@ public class MessageWxMpAddRequestDto extends AbstractStaffBizRequestDTO { |
|
|
|
@NotBlank |
|
|
|
private String requestDataJson;//发送handler信息 |
|
|
|
@ApiModelProperty(value = "附件名称", required = true) |
|
|
|
@NotBlank |
|
|
|
private String attachmentName;//附件名称 |
|
|
|
@ApiModelProperty(value = "附件地址", required = true) |
|
|
|
@NotBlank |
|
|
|
private String attachmentUrl;//附件地址 |
|
|
|
@ApiModelProperty(value = "消息类型,默认OFFICIAL_ACCOUNTS", required = true) |
|
|
|
@NotNull |
|
|
@@ -59,7 +57,7 @@ public class MessageWxMpAddRequestDto extends AbstractStaffBizRequestDTO { |
|
|
|
if (receiverIdList.isEmpty() && !StringTools.hasText(attachmentUrl)) { |
|
|
|
msg.append("用户列表和附件地址不能同时为空,"); |
|
|
|
} |
|
|
|
if (!(StringTools.hasText(attachmentUrl) && StringTools.hasText(attachmentUrl))) { |
|
|
|
if (!(StringTools.hasText(attachmentUrl) && StringTools.hasText(attachmentUrl)) && receiverIdList.isEmpty()) { |
|
|
|
msg.append("附件名称和附件地址不能为空,"); |
|
|
|
} |
|
|
|
if (StringTools.hasText(msg)) throw new ManagerException(msg.toString());; |