mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-05 21:27:47 +08:00
重命名客服接口获取方法名称,保证统一
This commit is contained in:
parent
e169bcc2e9
commit
244df15d83
@ -1377,7 +1377,7 @@ public class WxMpServiceImpl implements WxMpService {
|
||||
return this.kefuService;
|
||||
}
|
||||
|
||||
public void setCustomerService(WxMpKefuService kefuService) {
|
||||
public void setKefuService(WxMpKefuService kefuService) {
|
||||
this.kefuService = kefuService;
|
||||
this.kefuService.setWxMpService(this);
|
||||
}
|
||||
|
@ -20,6 +20,14 @@ import me.chanjar.weixin.mp.bean.customerservice.result.WxMpKfOnlineList;
|
||||
public class WxMpKefuServiceImpl implements WxMpKefuService {
|
||||
private WxMpService wxMpService;
|
||||
|
||||
public WxMpKefuServiceImpl(){
|
||||
|
||||
}
|
||||
|
||||
public WxMpKefuServiceImpl(WxMpService wxMpService) {
|
||||
this.wxMpService = wxMpService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setWxMpService(WxMpService wxMpService) {
|
||||
this.wxMpService = wxMpService;
|
||||
|
@ -23,8 +23,9 @@ public class ApiTestModule implements Module {
|
||||
WxXmlMpInMemoryConfigStorage.class, is1);
|
||||
WxMpServiceImpl wxService = new WxMpServiceImpl();
|
||||
wxService.setWxMpConfigStorage(config);
|
||||
WxMpKefuService customerService = new WxMpKefuServiceImpl();
|
||||
wxService.setCustomerService(customerService);
|
||||
|
||||
WxMpKefuService kefuService = new WxMpKefuServiceImpl();
|
||||
wxService.setKefuService(kefuService);
|
||||
|
||||
binder.bind(WxMpServiceImpl.class).toInstance(wxService);
|
||||
binder.bind(WxMpConfigStorage.class).toInstance(config);
|
||||
|
Loading…
Reference in New Issue
Block a user