|
|
@@ -45,7 +45,7 @@ public class TxSmsRequest implements SmsRequest {
|
|
|
for (SmsTemplateEntity entity : entitys) {
|
|
|
Long templateId = entity.getTemplateId();
|
|
|
DescribeTemplateListStatus status = map.get(templateId);
|
|
|
- if (status.getStatusCode().intValue() != entity.getStatusCode().intValue()) {
|
|
|
+ if (status != null && status.getStatusCode().intValue() != entity.getStatusCode().intValue()) {
|
|
|
entity.setReason(status.getReviewReply());
|
|
|
entity.setStatusCode(status.getStatusCode().intValue());
|
|
|
result = true;
|
|
|
@@ -151,8 +151,8 @@ public class TxSmsRequest implements SmsRequest {
|
|
|
String sdkAppID = map.get("SDKAppID");
|
|
|
String signName = map.get("signName");
|
|
|
String sms = map.get("sms");
|
|
|
- String sendMsgFlag= map.get("send_msg_flag");
|
|
|
- if(StringUtils.isBlank(sendMsgFlag) || !sendMsgFlag.equalsIgnoreCase("on")) {
|
|
|
+ String sendMsgFlag = map.get("send_msg_flag");
|
|
|
+ if (StringUtils.isBlank(sendMsgFlag) || !sendMsgFlag.equalsIgnoreCase("on")) {
|
|
|
return null;
|
|
|
}
|
|
|
httpProfile.setEndpoint(sms);
|