Skip to content

Commit 7b5480e

Browse files
author
peggypig
committed
modify usms SendUSMSMessageParam.TemplateParams is not required
1 parent 1b572a0 commit 7b5480e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ucloud-sdk-java-usms/src/main/java/cn/ucloud/usms/model/SendUSMSMessageParam.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public List<Param> checkPhoneNumbers() throws ValidatorException {
9191
public List<Param> checkTemplateParams() throws ValidatorException {
9292
List<Param> params = new ArrayList<>();
9393
if (templateParams == null || templateParams.isEmpty()) {
94-
throw new ValidatorException("templateParams can not be empty");
94+
return params;
9595
}
9696
int size = templateParams.size();
9797
String templateParamFormat = "TemplateParams.%d";

0 commit comments

Comments
 (0)