|
|
|
@@ -18,6 +18,7 @@ import com.iformall.service.WxAppinfoService; |
|
|
|
import com.iformall.service.msg.MsgSendService; |
|
|
|
import com.iformall.service.wechat.FmOpenService; |
|
|
|
import com.iformall.utils.MaUtil; |
|
|
|
import me.chanjar.weixin.common.error.WxErrorException; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@@ -131,7 +132,11 @@ public class SendSmartAppMsgServiceImpl implements MsgSendService { |
|
|
|
.data(dataTempList) |
|
|
|
.build(); |
|
|
|
|
|
|
|
wxMaService.getMsgService().sendSubscribeMsg(subscribeMessage); |
|
|
|
try { |
|
|
|
wxMaService.getMsgService().sendSubscribeMsg(subscribeMessage); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("openId:"+to+"-----发送订阅消息失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|