|
|
@@ -813,7 +813,11 @@ public class SmartVisitorController implements SmartVisitorControllerAPI {
|
|
|
|
|
|
//发送短信给其他访客用户
|
|
|
if (!ObjectUtils.isEmpty(sv.getVisitorCode())) {
|
|
|
- String message = SendSms.sendVisitorSms("+86" + sv.getUserPhone(), TimeExchange.getYear(sv.getVisitorTime()), TimeExchange.getMonth(sv.getVisitorTime()), TimeExchange.getDay(sv.getVisitorTime()), TimeExchange.getTime(sv.getVisitorTime()), TimeExchange.getTime(sv.getVisitorDeadline()), sv.getVisitorCode());
|
|
|
+ Date visitorTime = sv.getVisitorTime();
|
|
|
+ Date visitorDeadline = sv.getVisitorDeadline();
|
|
|
+ String start = TimeExchange.getTime(visitorTime);
|
|
|
+ String end = TimeExchange.getTime(visitorDeadline);
|
|
|
+ String message = SendSms.sendVisitorSms("+86" + sv.getUserPhone(), TimeExchange.getYear(sv.getVisitorTime()), TimeExchange.getMonth(sv.getVisitorTime()), TimeExchange.getDay(sv.getVisitorTime()), start, end, sv.getVisitorCode());
|
|
|
if (!message.contains("success")) {
|
|
|
throw new Exception("发送失败");
|
|
|
}
|