|
@@ -10,6 +10,8 @@ import com.usoftchina.smartschool.school.wxschool.support.RemindTask;
|
|
|
import com.usoftchina.smartschool.school.wxschool.utils.DateFormatUtil;
|
|
|
import com.usoftchina.smartschool.school.wxschool.utils.ObjectUtils;
|
|
|
import com.usoftchina.smartschool.wechat.api.WxPushApi;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -41,6 +43,7 @@ public class WxMeetingServiceImpl implements WxMeetingService {
|
|
|
@Value("${smartschool.domain.wechat}")
|
|
|
private String wechatUrl;
|
|
|
|
|
|
+ private final static Logger LOGGER = LoggerFactory.getLogger(WxMeetingServiceImpl.class);
|
|
|
|
|
|
* 创建会议
|
|
|
* @param jsonMeeting
|
|
@@ -100,6 +103,7 @@ public class WxMeetingServiceImpl implements WxMeetingService {
|
|
|
SchoolDO schoolDO = wxSchoolMapper.get(schoolId);
|
|
|
if (ObjectUtils.isNotEmpty(schoolDO)){
|
|
|
String openid = teacherMapper.get(l).getOpenid();
|
|
|
+ LOGGER.error("URL:{}" , wechatUrl);
|
|
|
wxPushApi.wxPush(schoolDO.getSchoolAppid(), schoolDO.getSchoolSecret(),openid , meeting, "您好,您有一条新的会议通知", meetingName, simpleDateFormat.format(meetingDO.getStartDate()), meetingAddress, "-", "点击查看详情", wechatUrl + "/meet-detail/" + meetingDO.getMeetingId()+"?teacherId="+l);
|
|
|
|
|
|
}
|