Browse Source

调整

master
zouhantao 2 weeks ago
parent
commit
3ff750296b

+ 1
- 1
zhywpt-app-msgw/src/main/java/cn/com/taiji/msgw/dto/MessageWxMiniAddRequestDto.java View File

if (receiverIdList.isEmpty() && !StringTools.hasText(attachmentUrl)) { if (receiverIdList.isEmpty() && !StringTools.hasText(attachmentUrl)) {
msg.append("用户列表和附件地址不能同时为空,"); msg.append("用户列表和附件地址不能同时为空,");
} }
if (!(StringTools.hasText(attachmentUrl) && StringTools.hasText(attachmentUrl))) {
if (!(StringTools.hasText(attachmentUrl) && StringTools.hasText(attachmentUrl)) && receiverIdList.isEmpty()) {
msg.append("附件名称和附件地址不能为空,"); msg.append("附件名称和附件地址不能为空,");
} }
if (StringTools.hasText(msg)) throw new ManagerException(msg.toString());; if (StringTools.hasText(msg)) throw new ManagerException(msg.toString());;

+ 1
- 3
zhywpt-app-msgw/src/main/java/cn/com/taiji/msgw/dto/MessageWxMpAddRequestDto.java View File

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

Loading…
Cancel
Save