@@ -79,7 +79,7 @@ public class SchoolServiceImpl extends BaseServiceImpl<Integer, School> implemen
//发送短信
//获取所有用户手机号列表
List<String> userPhone = applyInfoDao.findUserByClass(classId,null);
- String[] objects = (String[]) userPhone.toArray();
+ String[] objects=userPhone.toArray(new String[userPhone.size()]);
SmsExample.setBatchOnlySms(appId,secretKey,host,algorithm,String.format(Constants.SMS_TEMPLATE, DateUtils.getDayForAfter(new Date(), 2)),null,objects,isGizp,encode);
}