|
@@ -1,6 +1,7 @@
|
|
|
package com.usoftchina.smartschool.school.wxschool.support;
|
|
package com.usoftchina.smartschool.school.wxschool.support;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
+import com.usoftchina.smartschool.context.SpringContextHolder;
|
|
|
import com.usoftchina.smartschool.school.po.MeetingDO;
|
|
import com.usoftchina.smartschool.school.po.MeetingDO;
|
|
|
import com.usoftchina.smartschool.school.po.SchoolDO;
|
|
import com.usoftchina.smartschool.school.po.SchoolDO;
|
|
|
import com.usoftchina.smartschool.school.wxschool.mapper.WxMeetingMapper;
|
|
import com.usoftchina.smartschool.school.wxschool.mapper.WxMeetingMapper;
|
|
@@ -10,8 +11,8 @@ import com.usoftchina.smartschool.school.wxschool.mapper.WxTemplateMapper;
|
|
|
import com.usoftchina.smartschool.school.wxschool.utils.ObjectUtils;
|
|
import com.usoftchina.smartschool.school.wxschool.utils.ObjectUtils;
|
|
|
import com.usoftchina.smartschool.wechat.api.WxPushApi;
|
|
import com.usoftchina.smartschool.wechat.api.WxPushApi;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
|
|
|
|
|
|
|
+import javax.swing.*;
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -36,8 +37,7 @@ public class RemindTask extends TimerTask {
|
|
|
private WxTemplateMapper wxTemplateMapper;
|
|
private WxTemplateMapper wxTemplateMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
- @Value("${smartschool.domain.wechat}")
|
|
|
|
|
- private String wechatUrl;
|
|
|
|
|
|
|
+ private final static String wechatUrl = SpringContextHolder.getDomain();
|
|
|
|
|
|
|
|
private MeetingDO meetingDO;
|
|
private MeetingDO meetingDO;
|
|
|
|
|
|