44import java .util .Date ;
55
66import com .google .gson .JsonObject ;
7+
78import me .chanjar .weixin .common .bean .result .WxError ;
89import me .chanjar .weixin .common .exception .WxErrorException ;
910import me .chanjar .weixin .common .util .http .MediaUploadRequestExecutor ;
1314import me .chanjar .weixin .mp .api .WxMpService ;
1415import me .chanjar .weixin .mp .bean .kefu .request .WxMpKfAccountRequest ;
1516import me .chanjar .weixin .mp .bean .kefu .request .WxMpKfSessionRequest ;
16- import me .chanjar .weixin .mp .bean .kefu .result .*;
17+ import me .chanjar .weixin .mp .bean .kefu .result .WxMpKfList ;
18+ import me .chanjar .weixin .mp .bean .kefu .result .WxMpKfMsgList ;
19+ import me .chanjar .weixin .mp .bean .kefu .result .WxMpKfOnlineList ;
20+ import me .chanjar .weixin .mp .bean .kefu .result .WxMpKfSessionGetResult ;
21+ import me .chanjar .weixin .mp .bean .kefu .result .WxMpKfSessionList ;
22+ import me .chanjar .weixin .mp .bean .kefu .result .WxMpKfSessionWaitCaseList ;
1723
1824/**
1925 *
@@ -30,15 +36,15 @@ public WxMpKefuServiceImpl(WxMpService wxMpService) {
3036
3137 @ Override
3238 public WxMpKfList kfList () throws WxErrorException {
33- String url = API_URL_PREFIX + " /getkflist" ;
39+ String url = "https://api.weixin.qq.com/cgi-bin/customservice /getkflist" ;
3440 String responseContent = this .wxMpService
3541 .execute (new SimpleGetRequestExecutor (), url , null );
3642 return WxMpKfList .fromJson (responseContent );
3743 }
3844
3945 @ Override
4046 public WxMpKfOnlineList kfOnlineList () throws WxErrorException {
41- String url = API_URL_PREFIX + " /getonlinekflist" ;
47+ String url = "https://api.weixin.qq.com/cgi-bin/customservice /getonlinekflist" ;
4248 String responseContent = this .wxMpService
4349 .execute (new SimpleGetRequestExecutor (), url , null );
4450 return WxMpKfOnlineList .fromJson (responseContent );
0 commit comments