|
1 | 1 | package com.github.binarywang.demo.spring.service;
|
2 | 2 |
|
3 |
| -import javax.annotation.PostConstruct; |
4 |
| - |
5 |
| -import me.chanjar.weixin.mp.constant.WxMpEventConstants; |
6 |
| -import org.slf4j.Logger; |
7 |
| -import org.slf4j.LoggerFactory; |
8 |
| -import org.springframework.beans.factory.annotation.Autowired; |
9 |
| -import org.springframework.stereotype.Service; |
10 |
| - |
11 | 3 | import com.github.binarywang.demo.spring.config.WxMpConfig;
|
12 |
| -import com.github.binarywang.demo.spring.handler.AbstractHandler; |
13 |
| -import com.github.binarywang.demo.spring.handler.KfSessionHandler; |
14 |
| -import com.github.binarywang.demo.spring.handler.LocationHandler; |
15 |
| -import com.github.binarywang.demo.spring.handler.LogHandler; |
16 |
| -import com.github.binarywang.demo.spring.handler.MenuHandler; |
17 |
| -import com.github.binarywang.demo.spring.handler.MsgHandler; |
18 |
| -import com.github.binarywang.demo.spring.handler.NullHandler; |
19 |
| -import com.github.binarywang.demo.spring.handler.StoreCheckNotifyHandler; |
20 |
| -import com.github.binarywang.demo.spring.handler.SubscribeHandler; |
21 |
| -import com.github.binarywang.demo.spring.handler.UnsubscribeHandler; |
22 |
| - |
| 4 | +import com.github.binarywang.demo.spring.handler.*; |
23 | 5 | import me.chanjar.weixin.common.api.WxConsts;
|
24 | 6 | import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage;
|
25 | 7 | import me.chanjar.weixin.mp.api.WxMpMessageRouter;
|
26 |
| -import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl; |
| 8 | +import me.chanjar.weixin.mp.api.impl.WxMpServiceOkHttpImpl; |
27 | 9 | import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfOnlineList;
|
28 | 10 | import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
|
29 | 11 | import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
|
| 12 | +import me.chanjar.weixin.mp.constant.WxMpEventConstants; |
| 13 | +import org.slf4j.Logger; |
| 14 | +import org.slf4j.LoggerFactory; |
| 15 | +import org.springframework.beans.factory.annotation.Autowired; |
| 16 | +import org.springframework.stereotype.Service; |
| 17 | + |
| 18 | +import javax.annotation.PostConstruct; |
30 | 19 |
|
31 | 20 | /**
|
32 | 21 | *
|
33 | 22 | * @author Binary Wang
|
34 | 23 | *
|
35 | 24 | */
|
36 | 25 | @Service
|
37 |
| -public class WeixinService extends WxMpServiceImpl { |
| 26 | +public class WeixinService extends WxMpServiceOkHttpImpl { |
38 | 27 | private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
39 | 28 |
|
40 | 29 | @Autowired
|
|
0 commit comments