This commit is contained in:
许允枞 2025-03-27 15:17:42 +08:00
parent 71a9156430
commit c0c99b9271
2 changed files with 12 additions and 9 deletions

View File

@ -146,18 +146,21 @@ public class InspectionAppointmentServiceImpl extends ServiceImpl<InspectionAppo
if (appointment.getIsPickCar().equals("0")){
if (StringUtils.isNotEmpty(appointment.getOtherPhone())){
//给联系人发送
SendSmsUtil.sendMsgCommon(new String[]{Optional.ofNullable(appointment.getCarNo()).orElse(""),
appointment.getAppointmentDay(),partners.getPartnerName(),partners.getAddress(),sysUser.getNickname()+" "+sysUser.getMobile()
// },appointment.getOtherPhone(),"1400852709","机动车管家小程序","2112754");
},appointment.getOtherPhone(),"1400852709","机动车管家小程序","2386324");
// new String[]{Optional.ofNullable(appointment.getCarNo()).orElse(""),
// appointment.getAppointmentDay(),partners.getPartnerName(),partners.getAddress(),sysUser.getNickname()+" "+sysUser.getMobile()
//// },appointment.getOtherPhone(),"1400852709","机动车管家小程序","2112754");
// }
SendSmsUtil.sendMsgCommon(null,appointment.getOtherPhone(),"1400852709","机动车管家小程序","2386324");
}else {
//给本人发送
//给联系人发送
SendSmsUtil.sendMsgCommon(new String[]{Optional.ofNullable(appointment.getCarNo()).orElse(""),
appointment.getAppointmentDay(),partners.getPartnerName(),partners.getAddress(),sysUser.getNickname()+" "+sysUser.getMobile()
// },ownUser.getMobile(),"1400852709","机动车管家小程序","2112754");
},ownUser.getMobile(),"1400852709","机动车管家小程序","2386324");
// new String[]{Optional.ofNullable(appointment.getCarNo()).orElse(""),
// appointment.getAppointmentDay(),partners.getPartnerName(),partners.getAddress(),sysUser.getNickname()+" "+sysUser.getMobile()
//// },ownUser.getMobile(),"1400852709","机动车管家小程序","2112754");
// }
SendSmsUtil.sendMsgCommon(null
,ownUser.getMobile(),"1400852709","机动车管家小程序","2386324");
}
}else {
if (StringUtils.isNotEmpty(appointment.getOtherPhone())){

View File

@ -62,7 +62,7 @@ public class SendSmsUtil {
req.setSmsSdkAppId(sdkAppId);
req.setSignName(signName);
req.setTemplateId(templateId);
// req.setTemplateParamSet(templateParamSet);
req.setTemplateParamSet(templateParamSet);
// 返回的resp是一个SendSmsResponse的实例与请求对象对应
SendSmsResponse resp = client.SendSms(req);
// 输出json格式的字符串回包