File tree Expand file tree Collapse file tree
main/java/me/chanjar/weixin/mp/api
test/java/me/chanjar/weixin/mp/api Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1515 * @author Binary Wang
1616 *
1717 */
18- public interface WxMpKefuService extends WxMpBaseChildService {
18+ public interface WxMpKefuService {
1919 /**
2020 * <pre>
2121 * 获取客服基本信息
Original file line number Diff line number Diff line change 2323import me .chanjar .weixin .common .util .json .GsonHelper ;
2424import me .chanjar .weixin .common .util .json .WxGsonBuilder ;
2525import me .chanjar .weixin .common .util .xml .XStreamInitializer ;
26+ import me .chanjar .weixin .mp .api .impl .WxMpKefuServiceImpl ;
2627import me .chanjar .weixin .mp .bean .*;
2728import me .chanjar .weixin .mp .bean .result .*;
2829import me .chanjar .weixin .mp .util .http .*;
@@ -75,7 +76,7 @@ public class WxMpServiceImpl implements WxMpService {
7576
7677 protected WxMpConfigStorage wxMpConfigStorage ;
7778
78- protected WxMpKefuService kefuService ;
79+ protected WxMpKefuService kefuService = new WxMpKefuServiceImpl ( this ) ;
7980
8081 protected CloseableHttpClient httpClient ;
8182
@@ -1377,8 +1378,4 @@ public WxMpKefuService getKefuService() {
13771378 return this .kefuService ;
13781379 }
13791380
1380- public void setKefuService (WxMpKefuService kefuService ) {
1381- this .kefuService = kefuService ;
1382- this .kefuService .setWxMpService (this );
1383- }
13841381}
Original file line number Diff line number Diff line change 2020public class WxMpKefuServiceImpl implements WxMpKefuService {
2121 private WxMpService wxMpService ;
2222
23- public WxMpKefuServiceImpl (){
24-
25- }
26-
2723 public WxMpKefuServiceImpl (WxMpService wxMpService ) {
2824 this .wxMpService = wxMpService ;
2925 }
3026
31- @ Override
32- public void setWxMpService (WxMpService wxMpService ) {
33- this .wxMpService = wxMpService ;
34- }
35-
3627 @ Override
3728 public WxMpKfList kfList () throws WxErrorException {
3829 String url = "https://api.weixin.qq.com/cgi-bin/customservice/getkflist" ;
Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ public void configure(Binder binder) {
2424 WxMpServiceImpl wxService = new WxMpServiceImpl ();
2525 wxService .setWxMpConfigStorage (config );
2626
27- WxMpKefuService kefuService = new WxMpKefuServiceImpl ();
28- wxService .setKefuService (kefuService );
29-
3027 binder .bind (WxMpServiceImpl .class ).toInstance (wxService );
3128 binder .bind (WxMpConfigStorage .class ).toInstance (config );
3229 } catch (IOException e ) {
You can’t perform that action at this time.
0 commit comments