小程序消息推送
This commit is contained in:
parent
a77afdb4ef
commit
55447daef7
@ -1,9 +1,11 @@
|
|||||||
package com.xinelu.quartz.service.impl;
|
package com.xinelu.quartz.service.impl;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.xinelu.common.config.WeChatAppletChatConfig;
|
import com.xinelu.common.config.WeChatAppletChatConfig;
|
||||||
import com.xinelu.common.enums.PatientTypeEnum;
|
import com.xinelu.common.enums.PatientTypeEnum;
|
||||||
import com.xinelu.common.enums.RouteNodeNameEnum;
|
import com.xinelu.common.enums.RouteNodeNameEnum;
|
||||||
import com.xinelu.common.enums.SubscribeStatusEnum;
|
import com.xinelu.common.enums.SubscribeStatusEnum;
|
||||||
|
import com.xinelu.mobile.domain.TemplateContent;
|
||||||
import com.xinelu.mobile.mapper.homepage.HomePageMapper;
|
import com.xinelu.mobile.mapper.homepage.HomePageMapper;
|
||||||
import com.xinelu.mobile.utils.WeChatOfficialAccountUtils;
|
import com.xinelu.mobile.utils.WeChatOfficialAccountUtils;
|
||||||
import com.xinelu.mobile.vo.wechatofficialaccountcallback.PatientVO;
|
import com.xinelu.mobile.vo.wechatofficialaccountcallback.PatientVO;
|
||||||
@ -94,6 +96,11 @@ public class subscribeTaskServiceImpl implements SubscribeTaskService {
|
|||||||
List<Long> signPatientManageRouteNodeIds = new ArrayList<>();
|
List<Long> signPatientManageRouteNodeIds = new ArrayList<>();
|
||||||
//发送
|
//发送
|
||||||
for (PatientVO patientVO : patientVOS) {
|
for (PatientVO patientVO : patientVOS) {
|
||||||
|
try {
|
||||||
|
JSON.parseArray(patientVO.getAppletNodeContent(), TemplateContent.class);
|
||||||
|
} catch (Exception e) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Integer integer = weChatOfficialAccountUtils.sendAppletTemplateMessage(patientVO);
|
Integer integer = weChatOfficialAccountUtils.sendAppletTemplateMessage(patientVO);
|
||||||
if (integer == 0) {
|
if (integer == 0) {
|
||||||
signPatientManageRouteNodeIds.add(patientVO.getSignPatientManageRouteNodeId());
|
signPatientManageRouteNodeIds.add(patientVO.getSignPatientManageRouteNodeId());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user