Commit b8225f46 authored by shangtx's avatar shangtx

feat: 小程序消息

parent 929efa84
......@@ -2,6 +2,7 @@ package com.onsiteservice.common.service;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.WxMaSubscribeMessage;
import com.onsiteservice.core.exception.ServiceException;
import com.onsiteservice.dao.mapper.user.UserMapper;
import com.onsiteservice.entity.order.ServiceOrder;
import lombok.extern.slf4j.Slf4j;
......@@ -41,8 +42,9 @@ public class MiniAppMessageService {
.data(data)
.toUser(openId)
.build());
} catch (WxErrorException e) {
log.error("发送订阅消息异常", e);
} catch (Exception e) {
log.error("发送订阅消息异常:" + templateId, e);
throw new ServiceException("发送订阅消息异常:" + templateId, e);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment