4
4
import java .util .Date ;
5
5
6
6
import com .google .gson .JsonObject ;
7
+
7
8
import me .chanjar .weixin .common .bean .result .WxError ;
8
9
import me .chanjar .weixin .common .exception .WxErrorException ;
9
10
import me .chanjar .weixin .common .util .http .MediaUploadRequestExecutor ;
13
14
import me .chanjar .weixin .mp .api .WxMpService ;
14
15
import me .chanjar .weixin .mp .bean .kefu .request .WxMpKfAccountRequest ;
15
16
import 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 ;
17
23
18
24
/**
19
25
*
@@ -30,15 +36,15 @@ public WxMpKefuServiceImpl(WxMpService wxMpService) {
30
36
31
37
@ Override
32
38
public WxMpKfList kfList () throws WxErrorException {
33
- String url = API_URL_PREFIX + " /getkflist" ;
39
+ String url = "https://api.weixin.qq.com/cgi-bin/customservice /getkflist" ;
34
40
String responseContent = this .wxMpService
35
41
.execute (new SimpleGetRequestExecutor (), url , null );
36
42
return WxMpKfList .fromJson (responseContent );
37
43
}
38
44
39
45
@ Override
40
46
public WxMpKfOnlineList kfOnlineList () throws WxErrorException {
41
- String url = API_URL_PREFIX + " /getonlinekflist" ;
47
+ String url = "https://api.weixin.qq.com/cgi-bin/customservice /getonlinekflist" ;
42
48
String responseContent = this .wxMpService
43
49
.execute (new SimpleGetRequestExecutor (), url , null );
44
50
return WxMpKfOnlineList .fromJson (responseContent );
0 commit comments